{programming} is about how (La)TeX can be used as a programming language.

learn more… | top users | synonyms

2
votes
1answer
180 views

How to remove LaTeX control sequences from a .tex document using plasTeX?

I need to get just the text and math expressions (ignoring tables, pictures and styling) from a set of LaTeX documents and represent them in html. Looks like plasTeX and MathJaX are enough for this ...
13
votes
0answers
281 views

Is it possible to produce a context free grammar for Tikz path? node?

Even further, I would be happy to see a definition of the tikz language in the usual manner programming languages such as Java and Pascal are defined. The reason I ask is that I keep getting ...
8
votes
0answers
93 views

Table of contents with xtemplate (expl3)

Every time I typeset some book or articles, I start to renew sectioning commands (\part, \section, some \@-commands and so on), \maketitle, \tableofcontents commands by copy-pasting it to my class and ...
3
votes
0answers
29 views

Can I force a pre-process action on all commands or environments without having to redefine them all manually?

I am trying to preserve a history of the latex commands and environment initializations I use in a typeset html or pdf file. Is there a way where I can force a pre-process action on all commands ...
2
votes
0answers
72 views

Using For loop in latex to input multiple files in different directories

\documentclass{minimal} \usepackage{chngcntr} \usepackage{pgffor} \newcounter{question} \newcounter{answer} \setcounter{question}{0} \setcounter{answer}{0} \newcommand\Que[1]{ ...
2
votes
0answers
59 views

search for and highlight words/numbers in pdfpages while only printing highlighted pages

I have a project where it would be very helpful to be able to include pdf pages with certain text and or number highlighted, and in addition limit the pages output to those which have the highlighted ...
1
vote
0answers
13 views

Text Column Overfill (Non-Tabular)

I am working on a 2 column article and am getting warnings that some of my sections are "Overfilled" in specific places. In the preview I see some words spill over into the margins. This spill-over is ...
1
vote
0answers
28 views

Embedding Cmx.io code in LaTex?

This may seem a bit silly, but here goes. There's a project called Cmx.io that allows you to create xkcd-style comics using an HTML markup. I wanted to include comics like these in a book I am ...
1
vote
0answers
309 views

LaTeX for automatic report generation

I accept that this question might be a bit outside the scope of this page, but please bear with me! At work I'm going to set up a framework for generating some pretty basic reports, which could be on ...
1
vote
0answers
62 views

How to Extract Elements?

I could not find the right answer on the following question: If we have finite vector (a_{1},a_{2},...,a_{n}), how to extract any element from it, for example a_{5}? To say more clearly, I need an ...
1
vote
0answers
147 views

How to make listing program ConTeXt at LaTeX ?

I want make listing program Context at LaTeX, my MWE like this : \documentclass[]{article} \usepackage{listings} \usepackage[dvipsnames]{xcolor} \lstset { frame=single, framesep=\fboxsep, ...
1
vote
0answers
333 views

Dynamic programming of cheapest cost in LaTeX

From How can I automate the generation of this dynamic-programming graph?, Jubobs helped develop a foreach scheme to draw the paths. I was wondering if LaTeX can find the cheapest path by ...
0
votes
0answers
76 views

Can you feel the ink on your paper?

While thinking on the question How to flip certain pixels of a QR code? I came up with ideas which would require to test the following: is_something_already_in_my_document_at_position(x,y) which ...
0
votes
0answers
147 views

Are there any tools for Image -> LaTeX?

Are there any existing tools which take as input: TypeSet Math Formula output: LaTeX code which produces something similar to the existing math formula? Googling "inverse LaTex" gets answers about ...
0
votes
0answers
108 views

Command showing note page of the next frame

This question is based when I read the answer of... Note page showing the next frame I was wondering if it is possible just to define a command like \insertslideintonotes{<scale>} which then ...
0
votes
0answers
461 views

Creating a Multiple Choice Math Test with LaTeX and Automating It

I have decided to write an application which can manage test questions related to Mathematics. This application will use LaTeX as an intermediate format between questions and PDF output. Questions ...
0
votes
0answers
143 views

New header for moderncv classic style

I would like to achive a header like this for the moderncv classic style. Edit: For convenience I modified the header from the link to be in english. The thing on the left is a header with a table ...
0
votes
0answers
128 views

Software/Programm: latex-based math trainer

I need some help, because I searched the internet for quite a long time, but I wasn't successfull in getting a solution: I'm looking for a program/software, which helps me to practice math, which is ...