LaTeX \newcommand recursion gets very slow
Computing a square root in TeX
Horizontal Line in Array
Center with equal amount of text per line
Variable number of repeating command in macros
Inline chess symbols
Custom \sqcap operators
LaTeX \newcommand recursion gets very slow https://tex.stackexchange.com/landing/r/digest?cta=question&id=576865
I am writing a GCD calculator in LaTeX. Here I wrote Euclid's recursive algorithm, which should work with logarithmic time. The code here counts GCD of 377 and 233 (which is 1). The code works fine, ... [latexmk] [recursion]
asked by DKozl https://tex.stackexchange.com/landing/r/digest?cta=user&id=231894 17 votes
answered by egreg https://tex.stackexchange.com/landing/r/digest?cta=user&id=4427 17 votes
Computing a square root in TeX https://tex.stackexchange.com/landing/r/digest?cta=question&id=577304
We can simply compute approximations of the square roots of numbers, using these (mainly pure TeX) macros. \documentclass{article} \begin{document} \newcount\liczba \newcount\kwadrat \def\sqroot#1{\... [tikz-pgf] [macros] [pdftex] [luatex] [number]
asked by PrzemysAo\202aw Scherwentke https://tex.stackexchange.com/landing/r/digest?cta=user&id=26134
10 votes answered by egreg https://tex.stackexchange.com/landing/r/digest?cta=user&id=4427 15 votes
Horizontal Line in Array https://tex.stackexchange.com/landing/r/digest?cta=question&id=576963
Good evening, I'm trying to achieve following picture in latex, but i can't do it. Can someone help me? This is what I have so far: \documentclass[a4paper,12pt]{scrartcl} \usepackage{booktabs} \... [math-mode] [matrices] [line] [horizontal]
asked by Francesco Tallarico https://tex.stackexchange.com/landing/r/digest?cta=user&id=231970
9 votes answered by Werner https://tex.stackexchange.com/landing/r/digest?cta=user&id=5764 12
votes Center with equal amount of text per line https://tex.stackexchange.com/landing/r/digest?cta=question&id=576930
If I center the first sentence of lorem, traditional use of the center environment will result in text like so: However, suppose I want to center the text such that the length of each line is equal. ... [horizontal-alignment]
asked by andrewgazelka https://tex.stackexchange.com/landing/r/digest?cta=user&id=140206
9 votes answered by egreg https://tex.stackexchange.com/landing/r/digest?cta=user&id=4427 11 votes
Variable number of repeating command in macros https://tex.stackexchange.com/landing/r/digest?cta=question&id=577305
I am quite new to Latex and for the past few days I have been struggling to create a macro to insert schemes with labels. I use .eps files for my schemes which include a temporary marker that is then ... [macros] [chemstyle]
asked by piggy https://tex.stackexchange.com/landing/r/digest?cta=user&id=174013 7 votes
answered by Ulrich Diez https://tex.stackexchange.com/landing/r/digest?cta=user&id=118714 6
votes Inline chess symbols https://tex.stackexchange.com/landing/r/digest?cta=question&id=577377
I want to put chess symbols inline in my document. I know that, using skak, I can produce nice looking inline symbols with commands like \symking, etc. However, these are only white, and I need white ... [inline] [resize] [chess] [skak]
asked by The Ledge https://tex.stackexchange.com/landing/r/digest?cta=user&id=167657 7
votes answered by Steven B. Segletes https://tex.stackexchange.com/landing/r/digest?cta=user&id=25858
8 votes Custom \sqcap operators https://tex.stackexchange.com/landing/r/digest?cta=question&id=577110
I want to ask for something similar to Horizontal lines in \sqcup and \sqcap But instead of the alignment asked in that question, I want the horizontal line to align vertically to a minus sign and the ... [math-mode] [amsmath] [math-operators]
asked by FR09 https://tex.stackexchange.com/landing/r/digest?cta=user&id=230774 7 votes
answered by egreg https://tex.stackexchange.com/landing/r/digest?cta=user&id=4427 7 votes