<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: emasp2001</title>
    <description>The latest articles on DEV Community by emasp2001 (@emasp2001).</description>
    <link>https://dev.to/emasp2001</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F696335%2F6ee30cfc-f546-4222-8139-e66381395aba.jpeg</url>
      <title>DEV Community: emasp2001</title>
      <link>https://dev.to/emasp2001</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emasp2001"/>
    <language>en</language>
    <item>
      <title>How to work with Sage locally</title>
      <dc:creator>emasp2001</dc:creator>
      <pubDate>Mon, 30 Aug 2021 22:54:00 +0000</pubDate>
      <link>https://dev.to/emasp2001/how-to-work-with-sage-locally-3pc6</link>
      <guid>https://dev.to/emasp2001/how-to-work-with-sage-locally-3pc6</guid>
      <description>&lt;p&gt;Although you can use &lt;a href="https://cocalc.com"&gt;Cocalc&lt;/a&gt; to create mathematical documents with LaTex this can be slow when working on big projects, for that reason you can do the following to use LaTex with SageMath from your &lt;strong&gt;local computer&lt;/strong&gt;, and even working without internet. Follow the next steps:&lt;/p&gt;

&lt;h3&gt;
  
  
  Install LaTex
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Download and install &lt;em&gt;LaTex&lt;/em&gt; for you own system &lt;a href="https://www.latex-project.org/get/#tex-distributions"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install SageMath
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Download the &lt;em&gt;SageMath&lt;/em&gt; &lt;a href="https://www.sagemath.org/download.html"&gt;here&lt;/a&gt;. I recommend to use the &lt;em&gt;MIT, Cambridge, MA, USA&lt;/em&gt; version which has work perfect for me.&lt;/li&gt;
&lt;li&gt;Install the program from the downloads folder.&lt;/li&gt;
&lt;li&gt;If you are using MacOS do the following:

&lt;ul&gt;
&lt;li&gt;Move the uncompressed &lt;em&gt;Sage&lt;/em&gt; folder into &lt;em&gt;Applications/&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Start the &lt;em&gt;Sage App&lt;/em&gt;, if you do not see it's in the following path: &lt;code&gt;/Applications/SageMath/sage&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the command &lt;code&gt;!sudo ln -sf $/Applications/SageMath/sage /usr/local/bin&lt;/code&gt;. You may be ask to write your password. This will allow &lt;em&gt;Sage&lt;/em&gt; to be recognized as a terminal command which is &lt;strong&gt;very important&lt;/strong&gt; in order to compile our work.&lt;/li&gt;
&lt;li&gt;Quit Sage.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With that you are ready to go, keep in mind that each time you want to compile with &lt;code&gt;pdflatex document.tex&lt;/code&gt;, instead of that you have to do the following in order for Sage to calculate your solutions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pdflatex document.tex
sage document.sage
pdflatex document.tex
pdflatex document.tex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you're ready to go and start creating documents with your favorite text editor or with the default installed with LaTex, a good recommendation could be use &lt;a href="https://code.visualstudio.com"&gt;Visual Studio Code&lt;/a&gt; with the &lt;em&gt;extension&lt;/em&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop"&gt;LaTeX Workshop&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>help</category>
      <category>sagemath</category>
      <category>latex</category>
    </item>
  </channel>
</rss>
