Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tex]

TeX is a typesetting system, where the output is defined by command-sequences. Note that http://tex.stackexchange.com is specifically dedicated to TeX questions.

5
votes
0answers
29 views

A LaTeX environment that counts words

I am new to TeX and here is my attempt to (ab)use mfirstuc to define an environment that counts the words. I am looking for ...
5
votes
1answer
57 views

Hanzi grid template

I made myself a smallish template for practice writing some characters, see below. The objective for me was to have an easy way to enter a couple of characters, set the parameters (how many pre-drawn ...
7
votes
2answers
261 views

Translating LaTeX documents into different languages using DeepL API

I'm coming from C and C++ and have often troubles using Python's full potential. This is a script I wrote to translate LaTeX documents into different languages. A parser replaces all latex specific ...
5
votes
0answers
36 views

CMYK shadings implementation for PGF

PGF is a graphics framework for \$\TeX\$ and friends. It supports shadings (gradients), but only in RGB. There is often a need to output shadings in CMYK and I am having a go at implementing this. I'...
4
votes
0answers
43 views

TikZ: Arrow pointing to circle from inside through two points

Originally posted here; this comment suggested that I ask this question on this site instead. The code at the bottom produces the correct drawing, shown below. The issue is that I don't think I drew ...
6
votes
1answer
69 views

Generating a vigenere square in LaTeX3

I'm trying to generate a vigenere square using expl3. My aim is to provide an easy interface for different alphabets and different scaling. Therefore I chose a tabular-based approach which seemed very ...
6
votes
1answer
123 views

Theme for LaTeX class beamer

Some time ago I created a style to be used for slides and posters for the beamer class. I have published it on github as latex-beamertheme-ibadai. It was basically my first attempt on writing such a ...
5
votes
1answer
59 views

Smart subscript indexing macro

I need to go and rework a bunch of notation in a large body of work. But I might change my mind later, so I want to move to defining the notation a bit more semantically (e.g. writing ...
14
votes
1answer
214 views

Writing little package for rubber ducks in tikz

I'm currently working on a little latex package to bring rubber ducks into tikz (a continuation from https://tex.stackexchange.com/a/347458/36296). As this is the ...
8
votes
1answer
199 views

LaTeX table generator - file in argument list

My code generates a LaTeX table from a plain text file which uses whitespace as delimiters. It asks you the title of the columns one-by-one (mind the formatting!). Then it outputs a ...
6
votes
0answers
496 views

Print a nice Latex table from an array of values

To present some results I have had to write a short method to turn an array (a list of lists) into a nice representable LaTex table. It needed to have some nice formatting features and the ...
6
votes
1answer
143 views

Makefile for building classwork from markdown files and LaTeX

The following makefile builds my classwork for my various college classes and builds pdfs to hold the notes I took during class. I would like feedback on my directory structure and any optimizations ...
1
vote
0answers
89 views

A vanilla JavaScript library for typesetting algorithms in HTML documents using XML and LaTeX - follow-up

This post is basically a follow-up to my related question. I added some new keywords, made the code less DRY. Also, the library inserts the required CSS to the HTML document, so that there is no need ...
13
votes
1answer
255 views

A vanilla JavaScript library for typesetting pseudocode in HTML documents

I have this plain JavaScript library for typesetting pseudocode in HTML documents. (See the documentation for details.) (See the GitHub repository - broken as of now.) Source code algotype.js <...
10
votes
1answer
604 views

LaTeX resume, in classic style, templated to avoid publishing my private info

I began creating and refining my resume in LaTeX a long time ago. I recently modified it such that I would feel comfortable putting it out there for others to use as a template, if they wish. It has ...
6
votes
1answer
113 views

Get bibtex entries from metadata of PDF files

When I have to write a report or an article, I usually have my bibliography as PDFs in a specific folder, so I wrote this script to automate the generation of bibtex entries. It works so far, but I'd ...
5
votes
0answers
144 views

Parsing BibTeX in JavaScript

I have a project for which I need to parse BibTeX strings. In v0.2.9 and before, I used Regex, and I want to change that. I set up a while loop system that reads ...
5
votes
1answer
67 views

Generating a 1-dim array with explanatory arrows and text and large braces

I am still learning tikz and often have to use complicated solutions where I am sure are more simple ones. From my latest tikz files I picked one to ask for tips what I can do better, to learn about ...
5
votes
1answer
129 views

HTML page compiling LaTeX code to nice mathematics display - 2nd attempt

I have this page that allows a user to quickly compile \$\LaTeX\$ code into a mathematical display. Whenever the user compiles the code, that page also generates an URL from which it is possible to ...
3
votes
1answer
107 views

Typesetting A* in LaTeX using algorithm2e - follow-up

(See the previous and initial iteration.) I have this second version of my LaTeX code. I made it less dry by removing the duplicate keyword definitions shared by the two algorithms being typeset. ...
5
votes
0answers
882 views

B+ Tree Visualization in LaTeX/TikZ

I have written a LaTeX package to visualize B+ trees. The main purpose is to provide a simple but powerful package which provides a convenient interface. However, this is my first LaTeX package and ...
6
votes
1answer
179 views

TeX preamble for theses and short books

I recently joined the tex community and had quite a fun week texing. (I migrated this question to codereview, as it seems to be the better place for code-review samples). The result is some layout/...
8
votes
1answer
207 views

LaTeX code for presentation slides

I'm giving a presentation in a few days. I'm preparing my material in LaTeX; however, I am relatively new to it. How can I make my LaTeX code more concise and less repetitive? Here is a reduced ...
10
votes
2answers
220 views

Typesetting A* in LaTeX using algorithm2e

(See the next iteration.) The result looks like and my code is: ...
10
votes
1answer
161 views

English-Latin bilingual book with line numbers and bibliography

I just released a book with a deadline. My first job with LaTeX, very messy. I wondered if there is anybody out there, who would be so kind and take a look at the code and see, what optimizations can ...
13
votes
1answer
234 views

Generate a URL, shorten it, insert it in a tex file and compile those tex files

I have written a NodeJS module and its tests to generate a URL, shorten it with Bitly, insert the short link in a tex file, compile these tex files to PDF and then merge them into one. The code is ...
7
votes
2answers
1k views

Parsing BibTeX files in Java

As part of a larger project to generate a website with a personal list of publications, I implemented a parser for BibTeX files. The entry point is the parseFile ...
5
votes
1answer
69 views

Repetitive replacement for expressing fractions in LaTeX

I am converting natural math expressions with fractions to Latex code. What I have done seems to work on examples I've tested, but I'm not sure if the algorithm is safe. And maybe the string part ...
7
votes
1answer
84 views

Compile .tex and remove .div file from Haskell

As a practice for interacting with system commands, I wrote a Haskell program that compiles a .tex file specified by the argument. When one execute this program: If no argument is specified, print <...
10
votes
1answer
72 views

Automatic report generation from BibTeX

I wrote the following code for the question I asked here. Are there any catastrophic mistakes? (actually it did not really work with perltex and I am in doubt about having syntax mistake(s)) Also, I ...
3
votes
2answers
215 views

Python script for making a table

I have written a Python 2.6.6 script in order to make tables by taking the third column of every text file in a particular subgroup (signal and background in this case[particle physics]). However, I ...
2
votes
1answer
198 views

Using a compiler specified on the command line or automatically detected

Here is part of my build system. ...
2
votes
1answer
226 views

ant file for TeX compilation

Here is an ant script for generating TeX code and documentation for one LaTeX class and one LaTeX package. It is my first larger ant script: I welcome suggestions for improvements. ...
3
votes
1answer
1k views

Simplify regular expression? (Converting Unicode fractions to TeX)

Background I'm converting Unicode text to TeX for typesetting. In the input, I'm allowing simple fractions like ½ and ⅔ using single Unicode characters and complex fractions like ¹²³/₄₅₆ using ...