https://artofproblemsolving.com/wiki/api.php?action=feedcontributions&user=Printrbot&feedformat=atomAoPS Wiki - User contributions [en]2024-03-29T02:34:20ZUser contributionsMediaWiki 1.31.1https://artofproblemsolving.com/wiki/index.php?title=Asymptote:_Macintosh&diff=138396Asymptote: Macintosh2020-11-24T20:31:46Z<p>Printrbot: /* Installing Asymptote on a Mac/Linux */</p>
<hr />
<div>{| class="wikitable" style="border:1px solid black; background:#CEE0F2;text-align:center;"<br />
|-<br />
|style="background:#B0C4DE;"|'''[[Asymptote (Vector Graphics Language)]]'''<br />
|-<br />
|[[Asymptote: Getting Started|Getting&nbsp;Started]] - [[Asymptote: Basics|Basics]] - [[Asymptote: Reference|Reference]] - [[Asymptote: Useful commands and their Output|Examples]] - [[Asymptote: Macros and Packages|Macros&nbsp;and&nbsp;Packages]] - [[Asymptote: Advanced | Advanced&nbsp;Asymptote]] - [[Asymptote: Help|Help]]<br />
[[Asymptote: Useful functions|Useful functions]] - [[Asymptote: CSE5|CSE5 Package]]<br />
[[Category:Asymptote]]<br />
|}<noinclude><br />
<br />
== Installing Asymptote on a Mac/Linux ==<br />
<br />
'''This tutorial was tested on Mac OS 10.15.7 "Catalina," but should work for most older systems as well as other Unix systems'''<br />
<br />
<br />
Download the Asymptote source [http://sourceforge.net/project/showfiles.php?group_id=120000 here] (at the time of this edit, it is version 2.68) by selecting the latest version and downloading the asymptote-x.xx.src.tgz file.<br /><br />
Download and install [https://www.tug.org/mactex/ MacTeX].<br /><br />
Note that anywhere you see "x.xx", replace it with the Asymptote version number (e.g. If the file name was asymptote-2.68.src.tgz, you would replace x.xx with 2.68).<br />
<br />
There are two ways to actually install Asymptote: using the AsyIntaller written by PrintrBot, or installing it manually.<br />
<br />
===Installing via the AsyInstaller===<br />
#Download the code from GitHub [https://github.com/Rotorwing/AsyInstaller here]<br />
#Unzip the folder if it was not automatically.<br />
#Double click the asyinstaller file and follow the instructions in the installer.<br />
If all went well, Asymptote should be installed.<br />
<br /><br />
===Installing Manually===<br />
Terminal commands are italicized.<br />
<br />
# Open Terminal (located in /Applications/Utilities/Terminal.app)<br />
# Run: ''cd ~/Downloads # or wherever you put the asymptote-x.xx.src.tgz file''<br />
# ''tar -xvzf asymptote-x.xx.src.tgz''<br />
# ''cd asymptote-x.xx''<br />
# ''./configure''<br />
# ''make all''<br />
# ''sudo make install''<br />
If you get an error at the./configure step, stating that there is no acceptable C compiler found in $PATH, a solution is to download and install Xcode (you can get it on the app store.) or Xcode tools<br /><br /><br />
You have finished installing Asymptote.<br />
<br />
== Usage ==<br />
<br />
Suppose that on the Desktop, you have a file named '''asyfile.tex'''<br />
<br />
Here is a sample file:<br />
<br />
\documentclass[letterpaper,12pt]{article}<br />
\usepackage{amsmath}<br />
\usepackage{amssymb}<br />
\usepackage{asymptote}<br />
<br />
\begin{document}<br />
\begin{asy}<br />
size(300);<br />
draw((0,0)--(1,1),blue);<br />
\end{asy}<br />
\end{document}<br />
<br />
Use whatever LaTeX editor to compile the file. It will return a warning that looks something like this:<br />
<br />
Package asymptote Warning: file asyfile_1.pdf does not exist on input line 17.<br />
<br />
Terminal again.<br />
<br />
cd ~/Desktop<br />
asy asyfile<br />
<br />
That will run asymptote on the file '''asyfile.asy,''' (created when the tex file was compiled) producing '''asyfile_1.pdf.'''<br />
<br />
Now run latex on '''asyfile.tex''' again, and with any luck, it should compile with no errors. (The image produces a diagonal blue line.)<br />
<br />
<br />
=== Automation ===<br />
<br />
[http://www.artofproblemsolving.com/Forum/viewtopic.php?p=1241236#1241236 This post] describes a shell script that automates the compilation process.</div>Printrbothttps://artofproblemsolving.com/wiki/index.php?title=Asymptote:_Macintosh&diff=138390Asymptote: Macintosh2020-11-24T19:58:09Z<p>Printrbot: /* Installing Asymptote on a Mac/Linux */</p>
<hr />
<div>{| class="wikitable" style="border:1px solid black; background:#CEE0F2;text-align:center;"<br />
|-<br />
|style="background:#B0C4DE;"|'''[[Asymptote (Vector Graphics Language)]]'''<br />
|-<br />
|[[Asymptote: Getting Started|Getting&nbsp;Started]] - [[Asymptote: Basics|Basics]] - [[Asymptote: Reference|Reference]] - [[Asymptote: Useful commands and their Output|Examples]] - [[Asymptote: Macros and Packages|Macros&nbsp;and&nbsp;Packages]] - [[Asymptote: Advanced | Advanced&nbsp;Asymptote]] - [[Asymptote: Help|Help]]<br />
[[Asymptote: Useful functions|Useful functions]] - [[Asymptote: CSE5|CSE5 Package]]<br />
[[Category:Asymptote]]<br />
|}<noinclude><br />
<br />
== Installing Asymptote on a Mac/Linux ==<br />
<br />
'''This tutorial was tested on Mac OS 10.15.7 "Catalina," but should work for most older systems as well as other Unix systems'''<br />
<br />
<br />
Download the Asymptote source [http://sourceforge.net/project/showfiles.php?group_id=120000 here] (at the time of this edit, it is version 2.68) by selecting the latest version and downloading the asymptote-x.xx.src.tgz file.<br /><br />
Download and install [https://www.tug.org/mactex/ MacTeX].<br /><br />
Note that anywhere you see "x.xx", replace it with the Asymptote version number (e.g. If the file name was asymptote-2.68.src.tgz, you would replace x.xx with 2.68).<br />
<br />
There are two ways to actually install Asymptote: using the AsyIntaller written by PrintrBot, or installing it manually.<br />
<br />
===Installing via the AsyInstaller===<br />
#Download the code from GitHub [https://github.com/Rotorwing/AsyInstaller here]<br />
#Unzip the folder if it was not automatically.<br />
#Double click the asyinstaller file and follow the instructions in the installer.<br />
If all went well, Asymptote should be installed.<br />
<br /><br />
===Installing Manually===<br />
Terminal commands are italicized.<br />
<br />
# Open Terminal (located in /Applications/Utilities/Terminal.app)<br />
# Run: ''cd ~/Downloads # or wherever you put the asymptote-x.xx.src.tgz file''<br />
# ''tar -xvzf asymptote-x.xx.src.tgz''<br />
# ''cd asymptote-x.xx''<br />
# ''./configure''<br />
# ''make all''<br />
# ''sudo make install''<br />
<br />
You have finished installing Asymptote.<br />
<br />
== Usage ==<br />
<br />
Suppose that on the Desktop, you have a file named '''asyfile.tex'''<br />
<br />
Here is a sample file:<br />
<br />
\documentclass[letterpaper,12pt]{article}<br />
\usepackage{amsmath}<br />
\usepackage{amssymb}<br />
\usepackage{asymptote}<br />
<br />
\begin{document}<br />
\begin{asy}<br />
size(300);<br />
draw((0,0)--(1,1),blue);<br />
\end{asy}<br />
\end{document}<br />
<br />
Use whatever LaTeX editor to compile the file. It will return a warning that looks something like this:<br />
<br />
Package asymptote Warning: file asyfile_1.pdf does not exist on input line 17.<br />
<br />
Terminal again.<br />
<br />
cd ~/Desktop<br />
asy asyfile<br />
<br />
That will run asymptote on the file '''asyfile.asy,''' (created when the tex file was compiled) producing '''asyfile_1.pdf.'''<br />
<br />
Now run latex on '''asyfile.tex''' again, and with any luck, it should compile with no errors. (The image produces a diagonal blue line.)<br />
<br />
<br />
=== Automation ===<br />
<br />
[http://www.artofproblemsolving.com/Forum/viewtopic.php?p=1241236#1241236 This post] describes a shell script that automates the compilation process.</div>Printrbothttps://artofproblemsolving.com/wiki/index.php?title=User:Piphi&diff=132947User:Piphi2020-09-01T18:37:41Z<p>Printrbot: /* User Count */</p>
<hr />
<div>{{User:Piphi/Template:Header}}<br />
<br><br />
__NOTOC__<div style="border:2px solid black; -webkit-border-radius: 10px; background:#dddddd"><br />
==<font color="black" style="font-family: ITC Avant Garde Gothic Std, Verdana"><div style="margin-left:10px">User Count</div></font>==<br />
<div style="margin-left: 10px; margin-bottom:10px"><font color="black">If this is your first time visiting this page, edit it by incrementing the user count below by one.</font></div><br />
<center><font size="100px">319</font></center><br />
</div><br />
<div style="border:2px solid black; background:#cccccc;-webkit-border-radius: 10px; align:center"><br />
<br />
==<font color="black" style="font-family: ITC Avant Garde Gothic Std, Verdana"><div style="margin-left:10px">About Me</div></font>==<br />
<div style="margin-left: 10px; margin-bottom:10px"><font color="black">Piphi is legendary and made the USA IMO team in 2019.<br><br />
<br />
Piphi is the creator of the [[User:Piphi/Games|AoPS Wiki Games by Piphi]], the future of games on AoPS.<br><br />
<br />
Piphi started the signature trend at around May 2020.<br><br />
<br />
Piphi is an extremely OP person - LJCoder619. <br><br />
<br />
Piphi is OP --[[User:Aray10|Aray10]] ([[User talk:Aray10|talk]]) 23:22, 17 June 2020 (EDT) <br><br />
<br />
Piphi has been very close to winning multiple [[Greed Control]] games, piphi placed 5th in game #18 and 2nd in game #19. Thanks to piphi, Greed Control games have started to be kept track of. Piphi made a spreadsheet that has all of Greed Control history [https://artofproblemsolving.com/community/c19451h2126208p15569802 here].<br><br />
<br />
Piphi also found out who won [[Reaper]] games #1 and #2 as seen [https://artofproblemsolving.com/community/c19451h1826745p15526330 here].<br><br />
<br />
Piphi has been called op by many AoPSers, including the legendary [[User:Radio2|Radio2]] himself [https://artofproblemsolving.com/community/c19451h1826745p15526800 here]. (note: Radio2 calls many users op.)<br><br />
<br />
Piphi created the [[AoPS Administrators]] page, added most of the AoPS Admins to it, and created the scrollable table.<br><br />
<br />
Piphi has also added a lot of the info that is in the [[Reaper Archives]].<br><br />
<br />
Piphi has a side-project that is making the Wiki's [[Main Page]] look better, you can check that out [[User:Piphi/AoPS Wiki|here]].<br><br />
<br />
Piphi published Greed Control Game 19 statistics [https://artofproblemsolving.com/community/c19451h2126212 here].<br />
<br />
Piphi has a post that was made an announcement on a official AoPS Forum [https://artofproblemsolving.com/community/c68h2175116 here].<br />
<br />
Piphi is a proud member of [https://artofproblemsolving.com/community/c562043 The Interuniversal GMAAS Society].<br />
</font></div><br />
</div><br />
<div style="border:2px solid black; background:#bbbbbb;-webkit-border-radius: 10px; align:center"><br />
<br />
==<font color="black" style="font-family: ITC Avant Garde Gothic Std, Verdana"><div style="margin-left:10px">Goals</div></font>==<br />
<div style="margin-left: 10px; margin-right: 10px; margin-bottom:10px"><br />
You can check out more goals/statistics [[User:Piphi/Statistics|here]].<br />
<br />
A User Count of 330<br />
{{User:Piphi/Template:Progress_Bar|95.76|width=100%}}<br />
<br />
200 subpages of [[User:Piphi]]<br />
{{User:Piphi/Template:Progress_Bar|60.5|width=100%}}<br />
<br />
200 signups for [[User:Piphi/Games|AoPS Wiki Games by Piphi]]<br />
{{User:Piphi/Template:Progress_Bar|41|width=100%}}<br />
<br />
Make 10,000 edits<br />
{{User:Piphi/Template:Progress_Bar|18.68|width=100%}}</div><br />
</div></div>Printrbot