All Questions
26,168
questions with no upvoted or accepted answers
57
votes
1
answer
2k
views
How can I use wxLua in LuaLaTeX on Windows?
I have some problems using wxLua in LuaLateX.
This works:
lua simpleui.lua
(print instead of tex.print)
But if I try this:
lualatex wx.tex
it doesn't work.
\documentclass{article}
\directlua{...
51
votes
0
answers
2k
views
Using XMLTeX to typeset OpenDocument Text
I know that XMLTeX has already been used to typeset TEI documents, but has anyone publicly worked on a set of environment files and stylesheets to typeset OpenDocument Text? I have been looking for ...
40
votes
0
answers
2k
views
Advanced Math and braille
How does one go about typesetting math books in braille with all parenthesized subscripts and superscripts and are there braille signs for the amsmath package special symbols?
34
votes
0
answers
908
views
Is there a way to optimize citation order to reduce the number of superscript numbers in text?
I want to know if there is a way to optimize the order my citations are in, such that they output the minimum number of numbers in the text.
So, if I have citations \cite{A,B,C} and later \cite{A,C,...
28
votes
0
answers
679
views
Hyphenation differences between LuaTeX and other engines
I would like to hear what from the LuaTeX documentation would help me predict the differences in hyphenation behaviour of LuaTex.
I answered a question about hyphenating already-hyphenated words (like ...
20
votes
0
answers
1k
views
Decide between Polyglossia and Babel for XeLaTeX in 2019
Which are the key questions one has to ask to decide between Polyglossia and Babel for a XeLaTeX project in 2019?
There has been a similar, more general question in 2012, but the packages have ...
20
votes
1
answer
1k
views
proper alignment of pdfpages import in memoir typeblock
Finding the solution to Setting up pdfpages with memoir? turned out not to be as simple as adding the right layout parameter as an offset.
The first finding was that if a twoside documentclass is ...
20
votes
1
answer
6k
views
Is it possible to convert a citation style language (csl) style file to a bibtext (bst) style file?
I am in a bind, trying to wrap up my thesis in two weeks time.
My university requires me to use their citation style, which they only provide for endnote or zotero.
Since all my citations are in ...
18
votes
0
answers
1k
views
Script for using metatype to convert metafont to TTF?
In the metatype FAQ, there's a section called "I have Metafont sources of some font. How could I convert it to TrueType using Metatype?" In that, he lays out a dozen steps that really should be ...
16
votes
1
answer
294
views
Is there any repository of BibTeX extension conventions?
There are a few fairly wide-spread extensions to the set of "standard" BibTeX entry types and fields: @webpage is fairly common, I think, and url and eprint are fairly common fields. In some cases (...
16
votes
0
answers
1k
views
Transform paper folding diagram to 3D object or vice versa
I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
15
votes
0
answers
568
views
Optimising microtype for variable fonts
One can find the following passage on p. 27 of the microtype package documentation:
Don’t use too large a value for expansion. Font expansion is a feature that is
supposed to enhance the typographic ...
15
votes
0
answers
536
views
How to select the right index tool for LuaLaTeX in 2019?
There are several tools for indexing:
luaindex (one release from 2011, written in Lua, "This is an alpha version!", by Markus Kohm)
makeindex (1987-1993, written in C, by L. Lamport, P. Chen et al.)
...
15
votes
0
answers
2k
views
Obtain an animated PDF from an animated SVG
I have read Animations in LaTeX, but my question (I think) is different.
I have an SVG animated file and I want to create the same animation in LaTeX, without rewriting the code.
An example is this ...
15
votes
0
answers
885
views
Asymptote generates different output whether running in interactive mode or from pdflatex
I would like to make 3d pictures and put them side-by-side. I can do that nicely creating a file example.asy:
settings.render=1;
import graph;
import graph3;
import contour3;
material reds = ...
14
votes
0
answers
740
views
Unexpected behaviour with sorting option, multiple ref context and biblist (biblatex 3.0)
I have a large bibliography file where the vast majority of entries are annotated (and annotations can (and do) contain \cite commands).
I have to produce a list of the annotated entries displaying ...
13
votes
0
answers
184
views
tikz 3d gets "too many vectors" at commercial printer - detection? fix?
The 3d marmot included in samcarter's upcoming tugboat article on tikzlings (thanks sc!), which reduces to,
\documentclass{article}
\usepackage{tikzlings}
\begin{document}
\tikz{\marmot[3D]}
\end{...
13
votes
1
answer
2k
views
Framemaker to LaTeX
I'm a software person who has been tasked with moving a few thousand pages of documentation for a piece of legacy software online. The documentation is all in Adobe Framemaker and yes, there are lots ...
13
votes
1
answer
9k
views
Simpler way to create chemical graphs using chemfig
chemfig is a great package to draw molecules. But it's not very fast. I am searching for a software to create chemfig code of chemical graphs (molecules, reactions etc.). It would be great if it is ...
12
votes
0
answers
792
views
Proper usage of otherkeywords option in listings
I'm trying to understand how listings' otherkeywords option really works. The documentation says about it:
Defines keywords that contain other characters, or start with digits. Each given 'keyword' ...
12
votes
0
answers
15k
views
BibTex to EndNote
I have gone through a lot of seemingly similar questions/issue but have not find a solution.
Since we are working as a group there are some that prefer to write using MS Word-EndNote. I have all ...
12
votes
0
answers
401
views
Tags, like on TeX.SE, but with the ability to show or hide both the tag--document structure and associated text, as in the multiaudience package
The term "tags" can be understood to mean that which is used to organize and make text more understandable (as in TeX.SE).
The term "tags" can also be understood as something used to manipulate the ...
11
votes
0
answers
1k
views
Problem with the Glossary+bib2gls on Overleaf
I'm writing my thesis using overleaf and I would like to add Glossary. I have added the following commands to my preamble.tex
\usepackage[record]{glossaries-extra}
\GlsXtrLoadResources % input file ...
11
votes
0
answers
301
views
What does the .fit() method of a picture do?
What does the .fit() method of a picture do in the following Asymptote code?
picture pic1;
real size=50;
size(pic1,size);
fill(pic1,(0,0)--(50,100)--(100,0)--cycle,red);
picture pic2;
size(pic2,...
11
votes
0
answers
802
views
Copyable tabs in minted
I'm preparing tutorial for students with code fragments that they will copy to a text editor.
Is there a way to make syntax-highlighted code copyable to text editor so that indentation is preserved, ...
11
votes
1
answer
246
views
How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?
How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?
In this answer I provide a tentative patch which allows character protrusion to work normally in ...
11
votes
0
answers
1k
views
Configurable and Extensible Accents (Arrows, Dots, Vectors)
There seems to be no shortage of questions that ask how to place some symbol (frequently a non-standard arrow) over another symbol. Similarly, many people also want extensible arrows. And as expected, ...
10
votes
0
answers
161
views
Is still xtemplates recommended for document class writers?
Suppose I'd like to create a LaTeX class based on another one (say article), with e.g. quotations or theorems with specific designs (say as tcolorbox boxes): is it still nowadays recommended to rely ...
10
votes
0
answers
152
views
Too much horizontal spacing after double subscript
The use of the additional subscript 1 on s below adversely affects the spacing afterwards:
\documentclass{article}
\begin{document}
Actual:
$\begin{array}{l}
f_{s_1}(x) \\
f_{s}(x)
\end{array}$ \\
...
10
votes
0
answers
2k
views
Package cmap or `\input glyphtounicode`?
I'm sending PDFs to some folks who are supposed to copy some of the content elsewhere. It is important that my files are searchable and copyable (while I doubt these words to be proper English...)
So ...
10
votes
0
answers
228
views
How can I combine overlapping marginnotes in ConTeXt?
I'm working on a project very similar to the one described in this question, only for various reasons I'm using ConTeXt rather than that poster's use of XeLaTeX.
I too am typesetting a text with ...
10
votes
0
answers
880
views
Comfortably typesetting Extended Backus-Naur-Form
On this site I've found some solutions how to typeset Backus-Naur-Forms, e.g.:
How to type a Backus-Naur form in LaTeX
Which package can be used to write BNF grammars?
Unfortunately both solution ...
10
votes
0
answers
740
views
Integral limits placement with unicode-math
I'm struggling with integral limits placement when the unicode-math package is used (both under LuaLaTeX and XeTeX). The following example illustrates the issue:
\documentclass[10pt]{article}
\...
10
votes
0
answers
3k
views
Dotted/Dashed text
is there a way to write dashed or dotted letters such that they appear like normal but dotted or dashed?
i mean no word art or such things which i get when i use
\pdfliteral{q 1 Tr [0.1 .8]0 d}#1\...
10
votes
0
answers
421
views
LuaTeX 0.95 "incorrect math kerning"
I am trying out the new luatex 0.95 in TeXLive 2016 pretest. There's a problem with math kernel. Below is a MWE
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Lucida Bright Math OT}
\...
10
votes
0
answers
1k
views
TeX to ScientificWorkplace and back
I use TeXWorks while coauthors are stuck with ScientificWorkplace. They are not (even) able to save the document as Portable LaTeX.
Is there a "standard" preamble I could add to the .tex document to ...
10
votes
1
answer
6k
views
How to incorporate and scale matplotlib plots in latex using the PGF backend?
I am using the pgf backend of matplotlib to generate pgf files which I want to put into my latex document using tikzscale to be able to resize them easily.
Example python code:
#!/usr/bin/env python
# ...
9
votes
0
answers
240
views
Using some packages adds a vertical offset when using LaTeX to render text in matplotlib/python figures
I was advised to post here in the comments on a post I made on Stack Overflow.
I'm using LaTeX to render my text in figures in the Python package matplotlib. My problem was that when I added siunitx ...
9
votes
0
answers
410
views
Typessing on a grid (Quantum spaces by Jean-Luc Doumont) support in latex
I saw the presentation of Jean-Luc Doumont on typesetting on a grid.
He talks about some macros in this presentation, but I wonder if there is any package in latex yet, to support this.
Here are the ...
9
votes
0
answers
1k
views
TeXLive 2020: How to deal with tikz-berge and tikz-kiviat packages that were removed from CTAN
The MWE below works fine with TeXLive 2019 and produces:
But with TexLive 2020 version (MacTeX) I get
! LaTeX Error: File `tikz-berge.sty` not found
! LaTeX Error: File `tikz-kiviat` not found
It ...
9
votes
0
answers
308
views
Adjust \autocite on the basis of long/short form citation
SBL Style has a very particular requirement for when citations occur within footnotes.
The standard verbose styles put citations in parentheses when they occur within footnotes by defining \smartcite ...
9
votes
0
answers
2k
views
False lacheck Unmatched "{" Error
In the simple LaTeX file:
\documentclass{report}
\newcommand{\defaultleftmargin}{0.25in}
\begin{document}
\end{document}
I get the following errors with lacheck:
"hw01.tex", line 5: <- ...
9
votes
0
answers
704
views
Why is not there any \refcounter command in LaTeX?
We have the \stepcounter command in LaTeX where
\stepcounter{counter} adds one to the counter and resets all
subsidiary counters.
We also have the \refstepcounter command where
\refstepcounter{...
9
votes
0
answers
3k
views
Parallel Text (Translation) Including the Same/Double/Parallel Heading Numbering
I want to write a bilingual document with paragraph wise parallel translations (two column layout) -- something like this:
I also want to have structural elements like picture captions and headings ...
9
votes
0
answers
229
views
Correcting wrong choice of character variant from a stylistic set
I'm typesetting a document in German blackletter with XeLaTeX and ran across a peculiar — for want of a better word — error:
The hyphenation in itself is okay at that position. However, German ...
9
votes
0
answers
2k
views
\inputminted: distinct file parts in one listing (equivalent to linerange in listings)
I want to include code from a file into my document. However, several distinct line ranges should appear in the same listing. Also, I want to use gobbling, and it would be nice to include some blank ...
9
votes
0
answers
330
views
Can LuaLaTeX make wrapping text around figures easier?
If there is one thing LaTeX has never been good at, it is wrapping text around figures. Well, I have grown used to LuaLaTeX always providing a solution to what seemed impossible before. So does there ...
9
votes
0
answers
11k
views
TeX capacity exceeded, sorry [main memory size=5000000] with matlab2tikz and reduce_plot
Yet another Tex Capacity exceeded error.
I am generating a matlab scatter plot which without modification resulted in a 64.5 MB printed eps file. Using that plot directly in matlab2tikz resulted in a ...
8
votes
0
answers
129
views
Is there a way to visualize SyncTeX anchors in the PDF?
Forward and reverse synchronization between the TeX source and the PDF output using SyncTeX is an immensely useful tool when writing larger documents. Sometimes, especially when the synchronization is ...
8
votes
0
answers
235
views
Showcase of LuaLaTeX capabilities/packages
The Lua programming capabilities in LuaLaTeX greatly expand what is reasonably possible within .tex files. I stumble across examples of cool LuaLaTeX-only code and packages here and there on the net, ...