Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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.

Filter by
Sorted by
Tagged with
14 votes
1 answer
292 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 ...
samcarter's user avatar
  • 508
13 votes
1 answer
255 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 ...
springloaded's user avatar
13 votes
1 answer
486 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 <...
coderodde's user avatar
  • 28.4k
12 votes
1 answer
747 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 ...
Aaron Hall's user avatar
  • 1,568
10 votes
1 answer
83 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 ...
trblnc's user avatar
  • 203
10 votes
1 answer
203 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 ...
H. Brobjerg's user avatar
10 votes
2 answers
403 views

Typesetting A* in LaTeX using algorithm2e

(See the next iteration.) The result looks like and my code is: ...
coderodde's user avatar
  • 28.4k
9 votes
2 answers
2k 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 ...
Mr.Sh4nnon's user avatar
9 votes
1 answer
857 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 ...
Graipher's user avatar
  • 41k
8 votes
1 answer
309 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 ...
JesseTG's user avatar
  • 459
8 votes
1 answer
80 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 ...
Weijun Zhou's user avatar
8 votes
1 answer
392 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 ...
olaralex's user avatar
  • 165
7 votes
2 answers
2k 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 ...
Mangara's user avatar
  • 465
7 votes
1 answer
96 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 <...
Yosh's user avatar
  • 287
6 votes
1 answer
206 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/...
droid192's user avatar
  • 163
6 votes
1 answer
127 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 ...
TeXnician's user avatar
  • 163
6 votes
1 answer
256 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 ...
nicoco's user avatar
  • 389
6 votes
1 answer
288 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 ...
HSchmale's user avatar
  • 895
6 votes
1 answer
289 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 ...
Martin - マーチン's user avatar
5 votes
1 answer
77 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 ...
towi's user avatar
  • 608
5 votes
1 answer
112 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 ...
Tarass's user avatar
  • 175
5 votes
1 answer
71 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 ...
Frames Catherine White's user avatar
5 votes
1 answer
193 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 ...
coderodde's user avatar
  • 28.4k
5 votes
0 answers
58 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'...
David Purton's user avatar
5 votes
0 answers
2k 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 ...
SX.'s user avatar
  • 59
4 votes
1 answer
303 views

LaTeX: tikz and chemfig combination

Yes, I know, I did an (ab) use of the nodes. Is there a better way to make this image with TeX/LaTeX? Using MiKTeX with Texmaker ...
user3713179's user avatar
4 votes
1 answer
351 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 ...
ferada's user avatar
  • 11.1k
4 votes
1 answer
121 views

CV written in LaTeX

I've created a CV eager for corrections. Once it is properly written it'd be converted into a template, in order to share it with the community. Can you suggest some starting corrections or ideas? (I'...
user avatar
4 votes
1 answer
79 views

Making adjustments based on biblatex style

The styles which are provided by the biblatex package can be categorised into a few different families, e.g. numeric (numeric, <...
samcarter's user avatar
  • 508
4 votes
0 answers
116 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 ...
alphacapture's user avatar
4 votes
0 answers
314 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 ...
LarsW's user avatar
  • 141
3 votes
2 answers
240 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 ...
Vesnog's user avatar
  • 267
3 votes
1 answer
39 views

Chemfig: isomeri equilibrium

I spent a lot of time looking for the right coefficients of the two arrows, in order to align the three xylenes. There is probably a more elegant method. Could you suggest it to me? ...
user3713179's user avatar
3 votes
1 answer
282 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. ...
coderodde's user avatar
  • 28.4k
3 votes
1 answer
2k 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 ...
Todd Lehman's user avatar
2 votes
1 answer
203 views

Using a compiler specified on the command line or automatically detected

Here is part of my build system. ...
KAction's user avatar
  • 163
2 votes
1 answer
56 views

Creating table for placing images in LaTeX

I am attempting to create a table for placing images in LaTeX. The first column is the (image) index, the second and third columns are images from different folder. For example, in the row with index =...
JimmyHu's user avatar
  • 4,958
2 votes
1 answer
236 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. ...
Martin Schröder's user avatar
2 votes
0 answers
63 views

Recursive path drawing in Latex

I have some diagrams I'm drawing using tikz and I'd like to make a macro to draw them for me. I will describe it fully but here are some examples so you can follow along: The diagram has a number of ...
Sriotchilism O'Zaic's user avatar
2 votes
0 answers
154 views

KaTeX extension to Markdown

I've created a JS snippet to enhance markdown at display-time with KaTeX math rendering. (Specifically, this is mostly for documentation of math-heavy libraries where the host language documentation ...
CAD97's user avatar
  • 1,944