Giter Club home page Giter Club logo

sagelatex's Introduction

sageLatex

This is a guide of how to make this to work on ubuntu

To install sage, install the package with

sudo -E apt-add-repository -y ppa:aims/sagemath
sudo -E apt-get update
sudo -E apt-get install sagemath-upstream-binary

Then after this you will be able to use the sage command from the terminal.

Now we need to make the sagetex.sty file

There are two folders. One names sage -- we will make the sagetex.sty here and latex -- where we are going to write our code.

You can download and compile the sagetex.sty yourself from the link here or just use those that are in the git

In the sage folder, run these commands

f you can't or don't want to install SageTeX by using Sage, you can use
this CTAN package. If sagetex.py and sagetex.sty haven't been extracted
from the .dtx file, you'll need to do:

  0. Run `latex sagetexpackage.ins'

If a PDF file of the documentation wasn't included with this
distribution of SageTeX, you will need to build the documentation
yourself. To do that:

  1. Run `latex sagetexpackage.dtx'
  2. Run `sage sagetexpackage.sage'
  3. Run the indexing commands that the .ins file told you about.
  4. Run `latex sagetexpackage.dtx' again.

then copy the sagetex.sty and copy it to your latex folder.

Now in your latex folder we should have

example.tex
sagetex.sty

Run these commands in order

latex example.tex <- compile the tex
sage example.sage <- 
latex example.tex <- run again, after you have run the .sage file
pdflatex example.tex <- to create the pdf file
evince example.pdf <- to view the pdf

Clean folder structure

sageLatex
|--latex/
	|--example.tex
	|--sagetex.sty
	|--sagetex.py
|--sage/
	|--README
	|--example.pdf
	|--example.tex
	|--py_and_sty_dtx.dtx
	|--remote_sagetex_dtx.dtx
	|--sagetexpackage_dtx.dtx
	|--sagetexpackage_ins.ins
	|--sagetexpackage_pdf.pdf
	|--scripts_dtx.dtx

compile.sh

You can use the .sh file, to compile instead of the tedious 5 commands you have to run.

In your console write chmod +x ./compile.sh and after to compile your latex you can just run the command ./compile.sh

Tutorial

Basic

Loops

sagelatex's People

Contributors

kazyka avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.