parent_url
stringlengths 41
46
| parent_score
stringlengths 1
4
| parent_body
stringlengths 25
35.5k
| parent_user
stringlengths 37
42
| parent_title
stringlengths 12
150
| accepted
bool 2
classes | body
stringlengths 4
36.7k
| score
stringlengths 1
4
| user
stringlengths 37
42
| answer_id
stringlengths 1
6
| __index_level_0__
int64 0
322k
|
---|---|---|---|---|---|---|---|---|---|---|
https://tex.stackexchange.com/questions/686036 | 0 | I would like to set font sizes of certain nodes in a tikzcd diagram locally. However, simply writing `\small` or `\tiny` does not seem to cut it: the text remains the same size as before.
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{cd}
\begin{document}
\begin{tikzcd}[row sep=-1ex, column sep=2em]
A \arrow[r, "\varphi"] & B \\
{\tiny 0} & {\tiny 1}
\end{tikzcd}
\end{document}
```
What am I missing here?
(I am aware of the possibility of setting the font size for the entire diagram with `\tikzcdset`, but alas, that’s not what I want.)
| https://tex.stackexchange.com/users/120847 | Change font size of a single tikzcd node | true | Using `\scriptscriptstyle` or `\scriptstyle` where the text not remains the same size as before.
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{cd}
\begin{document}
\begin{tikzcd}[row sep=-1ex, column sep=2em]
A \arrow[r, "\varphi"] & B \\
{\scriptscriptstyle 0} & {\scriptscriptstyle 1}
\end{tikzcd}
\end{document}
```
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{cd}
\begin{document}
\begin{tikzcd}[row sep=-1ex, column sep=2em]
A \arrow[r, "\varphi"] & B \\
{\scriptstyle 0} & {\scriptstyle 1}
\end{tikzcd}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/117876 | 686038 | 318,269 |
https://tex.stackexchange.com/questions/686046 | 0 | I just found out about Latexdiff and it's just what I need right now. But unfortunatly I can't get the `.tex`-file created by Latexdiff to compile on my maschine. I tried a minimal example:
file nr. 1: ori.tex
```
\documentclass{article}
\begin{document}
Hello World
\end{document}
```
file nr. 2: ori\_v2.tex
```
\documentclass{article}
\begin{document}
Hello to this world!
\end{document}
```
They both compile fine.
Running Latexdiff ,however, yields the follwing file, which won't compile:
```
\documentclass{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL ori.tex Wed May 17 14:28:16 2023
%DIF ADD ori_v2.tex Wed May 17 14:29:17 2023
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF PREAMBLE
\RequirePackage[normalem]{ulem} %DIF PREAMBLE
\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}} %DIF PREAMBLE
%DIF SAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddbegin}{} %DIF PREAMBLE
\providecommand{\DIFaddend}{} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{} %DIF PREAMBLE
\providecommand{\DIFdelend}{} %DIF PREAMBLE
\providecommand{\DIFmodbegin}{} %DIF PREAMBLE
\providecommand{\DIFmodend}{} %DIF PREAMBLE
%DIF FLOATSAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE
\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE
\providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFaddendFL}{} %DIF PREAMBLE
\providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFdelendFL}{} %DIF PREAMBLE
%DIF COLORLISTINGS PREAMBLE %DIF PREAMBLE
\RequirePackage{listings} %DIF PREAMBLE
\RequirePackage{color} %DIF PREAMBLE
\lstdefinelanguage{DIFcode}{ %DIF PREAMBLE
%DIF DIFCODE_UNDERLINE %DIF PREAMBLE
moredelim=[il][\color{red}\sout]{\%DIF\ <\ }, %DIF PREAMBLE
moredelim=[il][\color{blue}\uwave]{\%DIF\ >\ } %DIF PREAMBLE
} %DIF PREAMBLE
\lstdefinestyle{DIFverbatimstyle}{ %DIF PREAMBLE
language=DIFcode, %DIF PREAMBLE
basicstyle=\ttfamily, %DIF PREAMBLE
columns=fullflexible, %DIF PREAMBLE
keepspaces=true %DIF PREAMBLE
} %DIF PREAMBLE
\lstnewenvironment{DIFverbatim}{\lstset{style=DIFverbatimstyle}}{} %DIF PREAMBLE
\lstnewenvironment{DIFverbatim*}{\lstset{style=DIFverbatimstyle,showspaces=true}}{} %DIF PREAMBLE
%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF
\begin{document}
Hello \DIFdelbegin \DIFdel{World}\DIFdelend \DIFaddbegin \DIFadd{to this world!}\DIFaddend
\end{document}
```
Trying to compile it, I get the following `.log`-file:
```
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=pdflatex 2023.5.14) 18 MAY 2023 12:57
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./ori_Diff.tex
(ori_Diff.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-04-20>
! Undefined control sequence.
l.1 \^^@
d^^@o^^@c^^@u^^@m^^@e^^@n^^@t^^@c^^@l^^@a^^@s^^@s^^@{^^@a^^@r^^@t^^@...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 \^^@d
^^@o^^@c^^@u^^@m^^@e^^@n^^@t^^@c^^@l^^@a^^@s^^@s^^@{^^@a^^@r^^@t^^@...
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Missing character: There is no d in font nullfont!
! Text line contains an invalid character.
l.1 \^^@d^^@
o^^@c^^@u^^@m^^@e^^@n^^@t^^@c^^@l^^@a^^@s^^@s^^@{^^@a^^@r^^@t^^@...
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened.
[...]
```
| https://tex.stackexchange.com/users/297253 | Latexdiff not compiling | true | Somehow you have saved the tex diff file in utf-16.
`^^@` is ascii 0 and is appearing because for ascii `\documentclass` saved as utf-16 every other byte is 0.
By uploading the diff code to this site you converted it to utf-8 (the whole site is utf-8) so your posted code works and gives
| 2 | https://tex.stackexchange.com/users/1090 | 686047 | 318,274 |
https://tex.stackexchange.com/questions/686005 | 2 | I use `cleveref` to create customized references to theorems, e.g.
>
> I have to reference to Theorems A1, A3 and A4.
>
>
>
When using `tex4ebook`, the respective links to the theorems work technically fine, but the appearance is not the most beautiful one: In the example above, "**A1**" would be the first link, "**, A3**" the second link, and "**and A4**" would be the third link. Is there a way that only "A1", "A3" and "A4" get linked (and not the comma and the word "and", respectively)?
Here is an MWE:
```
\documentclass[12pt]{book}
\usepackage{enumitem}
\usepackage{cleveref}
\usepackage{amsthm}
\newtheoremstyle{Theorem}{3pt}{3pt}{\itshape}{}{\bfseries}{}{.5em}{\thmname{#1}\thmnumber{#2}}
\theoremstyle{Theorem}
\newtheorem{TheoremA}{Theorem A}
\setlist[1]{leftmargin=*, labelsep=10pt, itemsep=1pt, label=\theTheoremA.\arabic*, align=parleft}
\crefname{A}{A}{A}
\crefformat{A}{A#2#1#3}
\crefrangeformat{A}{A#3#1#4 to~A#5#2#6}
\crefmultiformat{A}{A#2#1#3}{ and~A#2#1#3}{, A#2#1#3}{ and~A#2#1#3}
\begin{document}
\begin{TheoremA} \label[A]{A1}
This is Theorem A1.
\end{TheoremA}
\begin{TheoremA} \label[A]{A2}
This is Theorem A2.
\end{TheoremA}
\begin{TheoremA} \label[A]{A3}
This is Theorem A3.
\end{TheoremA}
\begin{TheoremA} \label[A]{A4}
This is Theorem A4.
\end{TheoremA}
This is a reference to the Theorems \cref{A1,A2}.
This is a reference to the Theorems \cref{A1,A3,A4}.
\end{document}
```
And a simple config file:
```
\Preamble{xhtml}
\begin{document}
\EndPreamble
```
| https://tex.stackexchange.com/users/179378 | tex4ebook: References with cleveref | true | You can try this version of `cleveref.4ht`. It will add link only to the reference number:
```
% cleveref.4ht (2023-03-10-14:19), generated from tex4ht-4ht.tex
% Copyright 2018-2023 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2023-03-10-14:19}
% orig:refstepcounter is saved in cleveref-hooks.4ht
\let\cref@old@refstepcounter\orig:refstepcounter%
\def\refstepcounter{%
\@ifnextchar[{\refstepcounter@optarg}{\refstepcounter@noarg}%]
}%
% fix for TeX4ht label mechanism
\def\cref:currentlabel#1{\let\cnt:currentlabel\@currentlabel
\def\:@currentlabel{\ifx \cnt:currentlabel\@currentlabel
\expandafter\the\csname c@#1\endcsname\else \@currentlabel\fi}%
%
\anc:lbl r{#1}%
}
\def\refstepcounter@noarg#1{%
\cref@old@refstepcounter{#1}%
\cref@constructprefix{#1}{\cref@result}%
\@ifundefined{cref@#1@alias}%
{\def\@tempa{#1}}%
{\def\@tempa{\csname cref@#1@alias\endcsname}}%
\protected@xdef\cref@currentlabel{%
[\@tempa][\arabic{#1}][\cref@result]%
\csname p@#1\endcsname\csname the#1\endcsname}%
\cref:currentlabel{#1}%
}%
\def\refstepcounter@optarg[#1]#2{%
\cref@old@refstepcounter{#2}%
\cref@constructprefix{#2}{\cref@result}%
\@ifundefined{cref@#1@alias}%
{\def\@tempa{#1}}%
{\def\@tempa{\csname cref@#1@alias\endcsname}}%
\protected@xdef\cref@currentlabel{%
[\@tempa][\arabic{#2}][\cref@result]%
\csname p@#2\endcsname\csname the#2\endcsname}%
\cref:currentlabel{#2}%
}%
\ifdefined\@firstoffive\else%
\def\@firstoffive#1#2#3#4#5{#1}%
\fi
\def\:tempa#1#2{\bgroup%
\def\rEfLiNK##1##2{\Link{##1}{}}%
\def\XRrEfLiNK[##1]##2##3{\Link[##1]{##2}{}}% handle links from Xr and Xr-hyper
\cref@getlabel{#2}{\@templabel}%
#1{\expandafter\expandafter\expandafter\@firstoffive\csname r@#2\endcsname{}{}{}{}{}%
\@templabel\EndLink}{}{}%
\egroup%
}%
\HLet\@@@setcref=\:tempa
\@ifpackageloaded{amsthm}{
\let\cref@thmnoarg\@thm%
\def\@thm{\@ifnextchar[{\cref@thmoptarg}{\cref@thmnoarg}}%]
\def\:tempb[#1]#2#3#4{%
% call original amsthm theorem definition, but
% disable \:thm in order to prevent infinite loop
\let\:thm\:gobble%
\cref@thmnoarg{#2}%
\o:cref@thmoptarg:[#1]{#2}{#3}{#4}
}%
\HLet\cref@thmoptarg\:tempb%
}{}%
\Hinput{cleveref}
\endinput
```
This is the result:
| 1 | https://tex.stackexchange.com/users/2891 | 686051 | 318,276 |
https://tex.stackexchange.com/questions/686056 | 6 | I am trying to understand the `\pdfbookmark[level]{text}{name}` macro. Here are my questions:
1. Is it defined in the LaTeX core? Where can I see the code?
2. Where do I find the documentation?
3. I happen to be using `hyperref`, and `hyperref.sty` has this: `\newcommand\pdfbookmark[3][]{}`, which basically means 3 args (1 optional, 2 mandatory), empty body. What is this doing?
4. What is the `level`?
(Note: I am a novice in LaTeX, so would appreciate simpler answers, if possible.)
| https://tex.stackexchange.com/users/264077 | Understanding `\pdfbookmark` | true | `\pdfbookmark` it is a hyperref command. The definition in hyperref.sty is a dummy, the real definitions are in the various backend files, e.g. `hpdftex.def` (for pdflatex) contains
```
\renewcommand\pdfbookmark[3][0]{%
\Hy@writebookmark{}{#2}{#3.#1}{#1}{toc}%
\hyper@anchorstart{#3.#1}\hyper@anchorend
}
```
The level allows to move up and down in the tree. With the `name` argument hyperref will create a target, so the name should be unique. You must compile the document twice.
```
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{a section bookmark}
\newpage
A\pdfbookmark[1]{text A}{targetA}
\newpage
B\pdfbookmark[2]{text B}{targetB}
\end{document}
```
If you want more options to create bookmarks, use the bookmark package. It has more powerful interfaces and requires also only one compilation.
| 9 | https://tex.stackexchange.com/users/2388 | 686058 | 318,280 |
https://tex.stackexchange.com/questions/686020 | -1 | I have a custom headline that puts the titles of all frames into a navigation bar at the top of all slides. It is this:
```
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}%
\let\oldhyperlink\hyperlink
\renewcommand{\hyperlink}[2]{\oldhyperlink{##1}{\underline{\smash{##2}}}}
\insertsectionnavigationhorizontal{\paperwidth}{\hskip0pt plus1filll}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
```
What I want to do is put a second, static bar of text above this bar. It will not have any dynamic information and be the same on all slides. What is the right way to do that?
| https://tex.stackexchange.com/users/181381 | headline in Beamer: What is the syntax to add a second, static box above my current custom headline? | false | You could place your static text in another `beamercolorbox` above it:
```
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}%
\usebeamerfont{section in head/foot} Some static text
\end{beamercolorbox}
}%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}%
\let\oldhyperlink\hyperlink
\renewcommand{\hyperlink}[2]{\oldhyperlink{##1}{\underline{\smash{##2}}}}
\insertsectionnavigationhorizontal{\paperwidth}{\hskip0pt plus1filll}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
\begin{document}
\section{title}
\begin{frame}
abc
\end{frame}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/36296 | 686059 | 318,281 |
https://tex.stackexchange.com/questions/685546 | 6 | My standard bibliography setup is to use bibtex in the amsalpha style. References are displayed by labels which contain a few letters related to the author followed by the two digit publication year. That is mostly fine, but occasionally when including historical references it seems a little confusing as far as dates go, e.g.
"The study of this question goes back all the way to [G20]; for a recent survey see [B21]".
>
> Is there a way to make references from years before a certain date (say 1900) appear with all four digits and later references with the usual two digits?
>
>
>
So in the example above, assume that [B21] was written by Joe Bloggs in 2021 and [G20] was written by Gauss in 1720, I would want it to read:
"The study of this question goes back all the way to [G1720]; for a recent survey see [B21]".
I want to keep using amsalpha style, but would consider using a modified myamsalpha.bst file instead. (That is was chatGPT suggested, but the various lines of code it wanted me to add caused errors and the fixes caused more errors and so on. and let's just say it ended badly.)
---
**Added:** A working example.
```
\documentclass[12pt,reqno]{amsart}
\usepackage{amssymb,amsmath,amsfonts,amsthm}
\begin{document}
"The study of this question goes back to~\cite{Gauss}; for a recent survey see~\cite{Bloggs}.
\bibliographystyle{amsalpha}
\bibliography{Working}
\end{document}
```
And the bib file:
```
@misc {Gauss,
AUTHOR = {Gau\ss , Carl Friedrich},
TITLE = {Important Stuff},
YEAR = {1821},
}
@misc{Bloggs,
Author = {Joe Bloggs},
Title = {Notes {I} just wrote},
Year = {2021},
}
```
| https://tex.stackexchange.com/users/296904 | 19th century references in bibtex with amsalpha | true | The `amsalpha.bst` style rejects anything that's not a digit in the `year` field and takes just the last two digits.
If you don't have too many such entries, you can fix them by hand.
```
\begin{filecontents*}[overwrite]{\jobname.bib}
@misc {Gauss,
author = {Gau{\ss}, Carl Friedrich},
title = {Important Stuff},
year = {1821},
}
@misc{Bloggs,
author = {Joe Bloggs},
title = {Notes {I} just wrote},
year = {2021},
}
\end{filecontents*}
\documentclass[12pt,reqno]{amsart}
\NewCommandCopy\latexbibitem\bibitem
\ExplSyntaxOn
\RenewDocumentCommand{\bibitem}{O{}m}
{
\lullaby_bibitem:en { \lullaby_bibitem_check:n { #1 } } { #2 }
}
\cs_new_protected:Nn \lullaby_bibitem:nn { \latexbibitem[#1]{#2} }
\cs_generate_variant:Nn \lullaby_bibitem:nn { e }
\cs_new:Nn \lullaby_bibitem_check:n
{
\str_case:nnF { #1 }
{
{Gau21}{Gau1821}
% other entries to fix
}
{ #1 }
}
\ExplSyntaxOff
\begin{document}
The study of this question goes back to~\cite{Gauss}; for a recent survey see~\cite{Bloggs}.
\bibliographystyle{amsalpha}
\bibliography{\jobname}
\end{document}
```
I used `filecontents*` just to make the example self-contained, use your `.bib` file for the production version.
The redefined `\bibitem` command checks the optional argument to be in the list of exceptions that you can fill in in the same way as I did for the Gauss paper.
The following modification of the code works for all releases of TeX Live from 2018. Replace
```
\NewCommandCopy\latexbibitem\bibitem
```
with
```
\ifdefined\NewCommandCopy
\NewCommandCopy\latexbibitem\bibitem
\else
\let\latexbibitem\bibitem
\usepackage{xparse}
\fi
```
| 1 | https://tex.stackexchange.com/users/4427 | 686064 | 318,285 |
https://tex.stackexchange.com/questions/686056 | 6 | I am trying to understand the `\pdfbookmark[level]{text}{name}` macro. Here are my questions:
1. Is it defined in the LaTeX core? Where can I see the code?
2. Where do I find the documentation?
3. I happen to be using `hyperref`, and `hyperref.sty` has this: `\newcommand\pdfbookmark[3][]{}`, which basically means 3 args (1 optional, 2 mandatory), empty body. What is this doing?
4. What is the `level`?
(Note: I am a novice in LaTeX, so would appreciate simpler answers, if possible.)
| https://tex.stackexchange.com/users/264077 | Understanding `\pdfbookmark` | false | Based on UlrikeFischer's explanation, I tried the following just to experiment. In case it helps anyone, posting it here. And do not forget to compile twice if using `hyperref` for pdfbookmarks.
```
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Section Bookmark}
\newpage
\pdfbookmark[0]{Text A}{targetA} A
\newpage
\pdfbookmark[1]{Text B}{targetB} B
\newpage
\pdfbookmark[2]{Text C}{targetC} C
\newpage
\pdfbookmark[2]{Text D}{targetD} D
\newpage
\pdfbookmark[4]{Text E}{targetE} E Skipped Level
\newpage
\pdfbookmark[3]{Text F}{targetF} F
\newpage
\pdfbookmark[1]{Text G}{targetG} G
\newpage
\pdfbookmark[2]{Text H}{targetH} H
\newpage
\pdfbookmark[0]{Text I}{targetI} I
\end{document}
```
And here's how `bookmark` package works:
```
\documentclass{article}
\usepackage{bookmark}
\begin{document}
\section{Section Bookmark}
\newpage
\hypertarget{targetA}{}
\bookmark[level=0,dest=targetA]{Text A} A
\newpage
\hypertarget{targetB}{}
\bookmark[level=1,dest=targetB]{Text B} B
\newpage
\hypertarget{targetC}{}
\bookmark[level=2,dest=targetC]{Text C} C
\newpage
\hypertarget{targetD}{}
\bookmark[level=2,dest=targetD]{Text D} D
\newpage
\hypertarget{targetE}{}
\bookmark[level=4,dest=targetE]{Text E} E Skipped Level
\newpage
\hypertarget{targetF}{}
\bookmark[level=3,dest=targetF]{Text F} F
\newpage
\hypertarget{targetG}{}
\bookmark[level=1,dest=targetG]{Text G} G
\newpage
\hypertarget{targetH}{}
\bookmark[level=2,dest=targetH]{Text H} H
\newpage
\hypertarget{targetI}{}
\bookmark[level=0,dest=targetI]{Text I} I
\end{document}
```
| 2 | https://tex.stackexchange.com/users/264077 | 686065 | 318,286 |
https://tex.stackexchange.com/questions/685986 | 0 | I am not able to make this command be deterministic. The weird behaviour I get with PDFLaTeX is explained in the comments of the following MWE. I checked for conflicts with package `afterpage`, also maybe via `multicol`, in my original document and after reading the warning in `background`'s documentation, but it didn't help. What can I do?
```
\documentclass[oneside,a4paper]{book}%
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[pages=all]{background}
\backgroundsetup{opacity=0.7,contents={\Huge MY BACKGROUND}}
\begin{document}
\thispagestyle{plain}%
%
\BgThispage{}\BgThispage{}\BgThispage{} %Shorthand to enhance opacity just here.
TITLE-PAGE
\clearpage\thispagestyle{empty}
\NoBgThispage{}
\thispagestyle{empty}
A first BgLess page.
\clearpage\thispagestyle{empty}
%\NoBgThispage{} %THIS COMMAND WILL MAKE ALL THE FOLLOWING PAGES MISS THE BACKGROUND.
\textbf{No BG here, please, but yes afterwards. Shouldn't it be as easy as in the previous page?}
\clearpage\thispagestyle{empty}
%\BgThispage% Even this command will be bypassed.
\clearpage
%\NoBgThispage{} %Again, this will affect every remaining page.
TOC page.
\clearpage%
\lipsum[1-10]
\vfill{}Why is BG missing here?
\end{document}
```
| https://tex.stackexchange.com/users/36389 | Background package - Troubles with `\NoBgThispage` command | false | After @Ulrike Fischer's comment and this answer: <https://tex.stackexchange.com/a/210105/36389>
a possible workaround for both enhancing opacity in specific pages and also omitting the background in others is to consider changing the background setup after `\begin{document}`. In this case, I defined 3 commands to hold different common setups along the document:
```
\documentclass[oneside,a4paper]{book}%
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[pages=all]{background}
\newcommand{\TitlePageBgOpacity}{0.95}
\newcommand{\NormalPageBgOpacity}{0.5}
\newcommand{\NoBgPageBgOpacity}{0}
\backgroundsetup{contents={\Huge MY BACKGROUND}}
\begin{document}
\thispagestyle{plain}%
%
\backgroundsetup{opacity=\TitlePageBgOpacity}
TITLE-PAGE
\clearpage\thispagestyle{empty}
\backgroundsetup{opacity=\NoBgPageBgOpacity}
\thispagestyle{empty}
A first BgLess page.
\clearpage\thispagestyle{empty}
%\backgroundsetup{opacity=\NoBgPageBgOpacity}
\textbf{No BG here, please, but yes afterwards. Shouldn't it be as easy as in the previous page?}
\clearpage\thispagestyle{empty}
\backgroundsetup{opacity=\NormalPageBgOpacity}
\clearpage
\backgroundsetup{opacity=\NoBgPageBgOpacity}
TOC page.
\clearpage%
\backgroundsetup{opacity=\NormalPageBgOpacity}
\lipsum[1-10]
\vfill{}Why is BG missing here?
\end{document}
```
| 0 | https://tex.stackexchange.com/users/36389 | 686068 | 318,287 |
https://tex.stackexchange.com/questions/686072 | 0 | my distribution updated `diffcoeff` to version 5.3 and now a lot of stuff is broken:
1. Powers of `\dl`, e.g. `\dl^2 x` don't work anymore (See [Powers of \dl with diffcoeff](https://tex.stackexchange.com/questions/672359/powers-of-dl-with-diffcoeff/672387#672387))
2. Symbols with a tilde on them don't work anymore:
```
\documentclass[11pt,parskip]{scrartcl}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \usepackage{amsmath}
% use option ISO or version >=5 (not tested) to get upright d
\usepackage{diffcoeff}
\begin{document}
$\dl A$
$\dl \tilde{A}$
%$\dl^2 A$
\end{document}
```
does not compile with the error
```
! You can't use math shift character $ after \the.
<argument> $
l.14 $\dl \tilde{
A}$
```
The obvious fix for both problems is using `\usepackage[ISO]{diffcoeff}[=v4]` but in my opinion that's not a long term solution. Considering the first problem, a fix is available, does anyone know how to fix the second problem?
Also, I switched from the `physics` package because the overall opinion seems to be that it is badly programmed, but when old documents break with newer version of the `diffcoeff` package I might switch back. Is there any advice for avoiding such problems in the future?
Thanks in advance.
| https://tex.stackexchange.com/users/287495 | Diffcoeff version 5 tilde | true | As of version 5, you need to put a multi-token variable in braces after `\dl`, such as `$\dl{\tilde{A}}$`.
This is explained in section 4.1 "Differentials" (on page 48) of the [current manual (version 5.3)](http://mirrors.ctan.org/macros/latex/contrib/diffcoeff/diffcoeff.pdf).
MWE:
```
\documentclass{article}
\usepackage{diffcoeff}
\begin{document}
$\dl A$
$\dl{\tilde{A}}$
$\difc[2]A{}$
$\difc[2]{\tilde{A}}{}$
\end{document}
```
---
Your second question about "hardening" documents against future package changes cannot be answered easily. In general, package maintainers are advised to take care for backwards compatibility, so that such problems don't occur at all. But at some point in time, best practices may change, new packages offering better basic functionality may emerge and new standards may be established, which would eventually make it necessary to alter the syntax of certain commands in a package. At least, such big changes should typically be documented in the package manuals (and this is the case here).
There is no sensible way to protect against this, apart from freezing a project including all the packages in the current working version for future reference. A better advice might be to always use up-to-date packages and also update your documents from time to time (but I know that this can be tedious).
| 2 | https://tex.stackexchange.com/users/47927 | 686076 | 318,293 |
https://tex.stackexchange.com/questions/686094 | 6 | I want to typeset the titles of the sections of my document in capitals, so I need to increase the spacing between the letters.
I am currently using the following (ugly) trick
```
\begingroup
\catcode`/=13 \def/{\kern0.167em}
\catcode` =\active \def {\kern0.5em}
c/h/a/p/t/e/r t/i/t/l/e
\endgroup
```
Is there a better way?
(I would prefer a plain TeX solution but one using pdfTeX/XeTeX extensions is also fine to me.)
| https://tex.stackexchange.com/users/nan | Increase letter spacing in plain TeX | false | xetex version
```
\font\rm="[lmroman10-regular.otf]"
\font\rmx="[lmroman10-regular.otf]:letterspace=7"
\rm
ABCDEF
\rmx
ABCDEF
\bye
```
If you add `\input{luaotfload.sty}` as the first line, then you get a version for `luatex`
| 9 | https://tex.stackexchange.com/users/1090 | 686097 | 318,298 |
https://tex.stackexchange.com/questions/686100 | 0 | I have a LaTeX code that works fine in my first template but when I copy it to my new template, it doesn't work and I really don't know why I get this error:
>
> Misplaced \noalign. You have used a \hline command in the wrong
> place, probably outside a table. If the \hline command is written
> inside a table, try including \ before it.
>
>
>
This is the link to my file in Overleaf: `https://www.overleaf.com/1445775647ghxgtdjxxdwx`
This is my code:
```
\documentclass[USenglish]{article}
% for 2-column layout use \documentclass[USenglish,twocolumn]{article}
\usepackage[utf8]{inputenc} %(only for the pdftex engine)
%\RequirePackage[no-math]{fontspec}[2017/03/31]%(only for the luatex or the xetex engine)
\usepackage[big,online]{dgruyter} %values: small,big | online,print,work
\usepackage{lmodern}
\usepackage{microtype}
\usepackage[numbers,square,sort&compress]{natbib}
% New theorem-like environments will be introduced by using the commands \theoremstyle and \newtheorem.
% Please note that the environments proof and definition are already defined within dgryuter.sty.
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{empheq}
\usepackage{blindtext}
\usepackage{multicol}
\usepackage{tabularray}
\begin{document}
%%%--------------------------------------------%%%
\articletype{Research Article}
\received{Month DD, YYYY}
\revised{Month DD, YYYY}
\accepted{Month DD, YYYY}
\journalname{De~Gruyter~Journal}
\journalyear{YYYY}
\journalvolume{XX}
\journalissue{X}
\startpage{1}
\aop
\DOI{10.1515/sample-YYYY-XXXX}
%%%--------------------------------------------%%%
\title{Insert your title here}
\runningtitle{Short title}
%\subtitle{Insert subtitle if needed}
\author*[1]{First Author}
%\ use * to mark the author as the corresponding author
\author[2]{Second Author}
\author[2]{Third Author}
\runningauthor{F.~Author et al.}
\affil[1]{\protect\raggedright
Institution, Department, City, Country of first author, e-mail: author\_one@xx.yz}
\affil[2]{\protect\raggedright
Institution, Department, City, Country of second author and third author, e-mail: author\_two@xx.yz, author\_three@xx.yz}
%\communicated{...}
%\dedication{...}
\abstract{}
\keywords{Please insert your keywords here, separated by commas.}
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{5}{|c|}{Gaussian } & \multicolumn{4}{|c|}{IMQ}\\ \hline
Level & Cond($\mathbf{A}$) & Max EV & Min EV & \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}} Cholesky\\ Y/N? \end{tabular}} & Cond($\mathbf{A}$) & Max EV & Min EV &\multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}} Cholesky\\ Y/N? \end{tabular}} \\ \hline
1 & 3.55E+00 & -3.3E+00 & -1.2E+01 & Y & 1.76E+00 & -5.4E+00 & -9.6E+00 & Y \\ \hline
2 & 7.13E+00 & -6.7E+00 & -4.8E+01 & Y & 2.41E+00 & -3.2E+01 & -7.7E+01 & Y \\ \hline
3 & 1.78E+01 & -1.1E+01 & -1.9E+02 & Y & 3.59E+00 & -1.7E+02 & -6.2E+02 & Y \\ \hline
4 & 5.09E+01 & -1.5E+01 & -7.7E+02 & Y & 5.26E+00 & -9.5E+02 & -5.0E+03 & Y \\ \hline
5 & 1.36E+02 & -2.3E+01 & -3.1E+03 & Y & 6.84E+00 & -5.9E+03 & -4.0E+04 & Y \\ \hline
6 & 2.69E+02 & -4.6E+01 & -1.2E+04 & Y & 7.81E+00 & -4.1E+04 & -3.2E+05 & Y \\ \hline
\end{tabular}
\caption{The condition number of the matrix $\mathbf{A}$ and the minimum/maximum eigenvalue of the matrix $\mathbf{A}$ using Gaussian RBF and IMQ RBF with $C=1$.}
\label{Tab: Cond_A_C1}
\end{table}
\end{document}
```
How can I fix this error please?
| https://tex.stackexchange.com/users/216843 | How to correct the error concerning the order \multicolumn? | true | The user guide of the `dgruyter` package states unequivocally that vertical rules should *not* be used in tables. The user guide states, moreover, that the `booktabs` package is loaded automatically by the `dgruyter` package, meaning that you should use commands such as `\toprule`, `\midrule`, `\bottomrule` and `\cmidrule` instead of `\hline` and `\cline`.
With this in mind, the following solution -- which also makes use of the capabilities of the `siunitx` package to typeset numbers in scientific format -- should be of interest to you.
```
\documentclass[english]{article}
% for 2-column layout use \documentclass[USenglish,twocolumn]{article}
%%\usepackage[utf8]{inputenc} % that's the default
%\RequirePackage[no-math]{fontspec}[2017/03/31]%(only for the luatex or the xetex engine)
\usepackage[big,online]{dgruyter} %values: small,big | online,print,work
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage[numbers,square,sort&compress]{natbib}
%%%%%\usepackage[utf8]{inputenc}
%\usepackage{multirow}
%\usepackage{hhline}
%\usepackage{empheq}
%\usepackage{blindtext}
%%%%%\usepackage{multicol} % not needed
%\usepackage{tabularray}
% new:
\usepackage{siunitx}
\begin{document}
%%%--------------------------------------------%%%
\articletype{Research Article}
\received{Month DD, YYYY}
\revised{Month DD, YYYY}
\accepted{Month DD, YYYY}
\journalname{De~Gruyter~Journal}
\journalyear{YYYY}
\journalvolume{XX}
\journalissue{X}
\startpage{1}
\aop
\DOI{10.1515/sample-YYYY-XXXX}
%%%--------------------------------------------%%%
\title{Insert your title here}
\runningtitle{Short title}
%\subtitle{Insert subtitle if needed}
\author*[1]{First Author}
%\ use * to mark the author as the corresponding author
\author[2]{Second Author}
\author[2]{Third Author}
\runningauthor{F.~Author et al.}
\affil[1]{\protect\raggedright
Institution, Department, City, Country of first author, e-mail: author\_one@xx.yz}
\affil[2]{\protect\raggedright
Institution, Department, City, Country of second author and third author, e-mail: author\_two@xx.yz, author\_three@xx.yz}
%\communicated{...}
%\dedication{...}
\abstract{}
\keywords{Please insert your keywords here, separated by commas.}
\begin{table}[h]
\sisetup{tight-spacing,print-zero-exponent}
\setlength{\tabcolsep}{0pt} % let LaTeX figure out intercol. whitespace
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}
l
S[table-format= 1.2e1] *{2}{S[table-format=-1.1e1]} c
S[table-format= 1.2e1] *{2}{S[table-format=-1.1e1]} c }
%\toprule % is automatic
Level & \multicolumn{4}{c}{Gaussian} & \multicolumn{4}{c}{IMQ} \\
\cmidrule{2-5} \cmidrule{6-9}
& {Cond($\mathbf{A}$)} & {Max EV} & {Min EV} & Cholesky? &
{Cond($\mathbf{A}$)} & {Max EV} & {Min EV} & Cholesky?
\\
\midrule
1 & 3.55E+00 & -3.3E+00 & -1.2E+01 & Y & 1.76E+00 & -5.4E+00 & -9.6E+00 & Y \\
2 & 7.13E+00 & -6.7E+00 & -4.8E+01 & Y & 2.41E+00 & -3.2E+01 & -7.7E+01 & Y \\
3 & 1.78E+01 & -1.1E+01 & -1.9E+02 & Y & 3.59E+00 & -1.7E+02 & -6.2E+02 & Y \\
4 & 5.09E+01 & -1.5E+01 & -7.7E+02 & Y & 5.26E+00 & -9.5E+02 & -5.0E+03 & Y \\
5 & 1.36E+02 & -2.3E+01 & -3.1E+03 & Y & 6.84E+00 & -5.9E+03 & -4.0E+04 & Y \\
6 & 2.69E+02 & -4.6E+01 & -1.2E+04 & Y & 7.81E+00 & -4.1E+04 & -3.2E+05 & Y \\
%\bottomrule % is automatic
\end{tabular*}
\caption{The condition number of the matrix $\mathbf{A}$ and the minimum\slash maximum eigenvalue of the matrix $\mathbf{A}$ using Gaussian RBF and IMQ RBF with $C=1$.}
\label{Tab: Cond_A_C1}
\end{table}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/5001 | 686104 | 318,300 |
https://tex.stackexchange.com/questions/663319 | 1 | I am trying to remove the number before the `for loop` in the below algorithm. I would like to continue using the packages I am using, but have only found potential answers for `algorithm2e`. Is it possible to stop the algorithm from numbering the `for` statement?
```
\documentclass[pdflatex,sn-mathphys,lineno,noend]{article}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage{algorithmicx}%
\usepackage{algpseudocode}%
\usepackage{amsfonts, bm, amsmath, amssymb}
\usepackage{mathtools}
\begin{document}
\begin{algorithm}[!htp]
\caption{This is the algorithm
}
\begin{algorithmic}[1]
\Require $\mathbf{X}$\\
Get initial information;\\
$\begin{aligned}
y = mx + b,
\end{aligned}$
\For{$i \gets 1 \text{ to } \vert k \vert$}{
do something
\EndFor}\\
get results
\end{algorithmic}
\end{algorithm}
\end{document}
```
Thanks in advance.
| https://tex.stackexchange.com/users/214063 | Remove line number before for statement in algorithm | false | You can temporarily intervene and remove the line number printing algorithm when setting a `\For` and `\EndFor`. In the code below, `\NoLNFor` and `\NoLNEndFor` do just that using the following steps:
* Copy the current version of `\alglinenumber` (used to print the line number)
* Remove functionality of `\alglinenumber`
* Set `\For`/`\EndFor` as usual
* Step the line counter back one
* Restore `\alglinenumber`
```
\documentclass{article}
\usepackage{algorithm,algpseudocode}
\newcommand{\oldalglinenumber}{}% Dummy storage macro
\NewDocumentCommand{\NoLNFor}{ m }{%
\RenewCommandCopy{\oldalglinenumber}{\alglinenumber}% Copy current version of line number printing macro
\RenewDocumentCommand{\alglinenumber}{ m }{}% Turn \alglinenumber into a no-op
\For{#1}% Print regular for command
\addtocounter{ALG@line}{-1}% Step line counter back
\RenewCommandCopy{\alglinenumber}{\oldalglinenumber}% Restore line number printing macro
}
\NewDocumentCommand{\NoLNEndFor}{}{%
\RenewCommandCopy{\oldalglinenumber}{\alglinenumber}% Copy current version of line number printing macro
\RenewDocumentCommand{\alglinenumber}{ m }{}% Turn \alglinenumber into a no-op
\EndFor% Print regular end for command
\addtocounter{ALG@line}{-1}% Step line counter back
\RenewCommandCopy{\alglinenumber}{\oldalglinenumber}% Restore line number printing macro
}
\begin{document}
\begin{algorithm}
\caption{This is the algorithm}
\begin{algorithmic}[1]
\Require $\mathbf{X}$
\State Get initial information;
\State $y = mx + b$,
\NoLNFor{$i \gets 1 \textup{ to } \vert k \vert$}
\State do something
\NoLNEndFor
\State get results
\end{algorithmic}
\end{algorithm}
\end{document}
```
You'll note that I updated your code as well to conform to the syntax provided by [`algorithmicx`](//ctan.org/pkg/algorithmicx). That is, don't use `\\`, but `\State`. Similarly, `$\begin{aligned} <math> \end{aligned}$` is more conveniently written as `$<math>$` when there's no alignment involved.
| 0 | https://tex.stackexchange.com/users/5764 | 686105 | 318,301 |
https://tex.stackexchange.com/questions/686106 | 4 | I get the error: `Missing number, treated as zero.` trying to pass a counter to `\lipsum`. I feel like I might be forgetting some basic technique here, but I've unsuccessfully scoured the site to find out why the following doesn't work:
```
\documentclass{article}
\usepackage{lipsum}
\newcount\zz
\loop
\lipsum[\zz]
\advance\zz1
\ifnum\zz<60
\repeat
\end{document}
```
In case anyone's wondering why I would bother with this, when `\lipsum[1-60]` gives me all those paragraphs, it's because it gives them all in one go, whereas I want to add something to each element, so there would be other lines of code added to the loop.
In particular, the loop enables me to use the counter value, which is part of the reason for using a loop in the first place.
| https://tex.stackexchange.com/users/37070 | How to get lipsum to accept a count as a parameter | true | Use `\the\zz`. `lipsum` currently sacrifices some flexibility (like using a count directly) to parse number ranges (like `2-5`). A more robust parser would solve the problem, but using `\the` is guaranteed to work:
```
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\newcount\zz
\loop
\lipsum[\the\zz]
\advance\zz1
\ifnum\zz<60
\repeat
\end{document}
```
| 6 | https://tex.stackexchange.com/users/134574 | 686107 | 318,302 |
https://tex.stackexchange.com/questions/685546 | 6 | My standard bibliography setup is to use bibtex in the amsalpha style. References are displayed by labels which contain a few letters related to the author followed by the two digit publication year. That is mostly fine, but occasionally when including historical references it seems a little confusing as far as dates go, e.g.
"The study of this question goes back all the way to [G20]; for a recent survey see [B21]".
>
> Is there a way to make references from years before a certain date (say 1900) appear with all four digits and later references with the usual two digits?
>
>
>
So in the example above, assume that [B21] was written by Joe Bloggs in 2021 and [G20] was written by Gauss in 1720, I would want it to read:
"The study of this question goes back all the way to [G1720]; for a recent survey see [B21]".
I want to keep using amsalpha style, but would consider using a modified myamsalpha.bst file instead. (That is was chatGPT suggested, but the various lines of code it wanted me to add caused errors and the fixes caused more errors and so on. and let's just say it ended badly.)
---
**Added:** A working example.
```
\documentclass[12pt,reqno]{amsart}
\usepackage{amssymb,amsmath,amsfonts,amsthm}
\begin{document}
"The study of this question goes back to~\cite{Gauss}; for a recent survey see~\cite{Bloggs}.
\bibliographystyle{amsalpha}
\bibliography{Working}
\end{document}
```
And the bib file:
```
@misc {Gauss,
AUTHOR = {Gau\ss , Carl Friedrich},
TITLE = {Important Stuff},
YEAR = {1821},
}
@misc{Bloggs,
Author = {Joe Bloggs},
Title = {Notes {I} just wrote},
Year = {2021},
}
```
| https://tex.stackexchange.com/users/296904 | 19th century references in bibtex with amsalpha | false | If you switch to `biblatex`, you can use `shorthand` for the bibitems you want with full year.
This code works from TeX Live 2019 onwards.
```
\begin{filecontents*}[overwrite]{\jobname.bib}
@misc {Gauss,
author = {Gau{\ss}, Carl Friedrich},
title = {Important Stuff},
year = {1821},
shorthand={Gau1821},
}
@misc{Bloggs,
author = {Joe Bloggs},
title = {Notes {I} just wrote},
year = {2021},
}
\end{filecontents*}
\documentclass[12pt,reqno]{amsart}
\usepackage{etoolbox}
\usepackage[style=alphabetic]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
The study of this question goes back to~\cite{Gauss}; for a recent survey see~\cite{Bloggs}.
\printbibliography
\end{document}
```
| 1 | https://tex.stackexchange.com/users/101651 | 686113 | 318,304 |
https://tex.stackexchange.com/questions/686098 | 0 | I'm writing my thesis, and recently I noticed that I have a warning that I can't get rid of:
```
name{chapter*.2} has been referenced but does not exist, replaced by a fixed one
```
I created a minimal working example that you can use to reproduce the warning. I wasn't able to reduce it further since the warning seems to only occur if you use a table of contents, bibliography, hyperref and an acronym glossary at the same time. It also seems to only occur after the first compilation run of the document. Since this is my thesis I'm scared that this warning could result in some errors down the line. I would be very grateful if you could help me getting rid of this warning.
**Edit:** I also just noticed that after the first compilation run the acronym glossary is also missing in the table of contents. After another compilation round it appears in the table of contents.
**Edit:** You can find the log file contents here: <https://pastebin.com/Hu8Hm3ng>
**MWE.tex**
```
\documentclass[
12pt,
DIV=12,
paper=A4,
listof=totoc,
parskip=half,
bibliography=totoc,
]{scrreprt}
\usepackage[
backend = biber,
]{biblatex}
\addbibresource{MyBib.bib}
\usepackage[
toc,
nomain,
acronym,
nopostdot,
nonumberlist,
]{glossaries}
\loadglsentries{MyAcronym}
\makeglossaries
\usepackage[
bookmarks = true,
bookmarksnumbered = true,
pdfpagemode = {UseOutlines},
pdfpagelabels = true,
]{hyperref}
\begin{document}
\tableofcontents
\chapter{Lorem Ipsum}
This is a citation \cite{Test.2023}. This is a \acrfull{Test}
\printglossary[title={Acronyms}, type=\acronymtype]
\printbibliography
\end{document}
```
**MyBib.bib**
```
@book{Test.2023,
author = {Lorem Ipsum},
year = {2023},
title = {Strange Warning},
}
```
**MyAcronym.tex**
```
\newacronym{Test}{Test}{Test Full}
```
| https://tex.stackexchange.com/users/228398 | Warning: name{chapter*.2} has been referenced but does not exist, replaced by a fixed one | true | **tl;dr**: Just compile with LaTeX again a couple more times to make the warning in the MWE go away.
---
Documents that contain cross-references and lists like a table of contents need to be compiled several times with LaTeX, because LaTeX cannot "see into the future". When the ToC is typeset LaTeX has not yet processed the chapters that are referenced there and therefore cannot know their page numbers. LaTeX resolves this by writing this information to an auxiliary file during the compile run. That file can then be read in at the beginning of the document in the next run. That way the page numbers of your chapters are available from the start of the LaTeX run and the ToC can be typeset with correct page references. Of course this only works if you run LaTeX multiple times. (For some background and more technical explanations see [Understanding how references and labels work](https://tex.stackexchange.com/q/111280/35864.))
LaTeX has a heuristic set up that warns you in the `.log` file if further LaTeX runs are necessary (because new cross-references were added or because they might have changed). Always rerun LaTeX as often as required to make these messages go away. If you get a warning you don't understand it is not a bad idea to rerun and see if it goes away. If that does not help, deleting all auxiliary files (`.aux`, `.bbl`, `.bcf`, `.toc`, `.acn`, ...) and recompiling from scratch might also be useful at times.
If you involve various external tools like Biber and `makeglossaries`, things become more involved and more LaTeX runs might be required.
I would compile your example at least as follows
>
> LaTeX, Biber, LaTeX, LaTeX, `makeglossaries`, LaTeX, LaTeX
>
>
>
It's an interesting question whether you should run Biber or `makeglossaries` first. If you expect the bibliography/citations to influence the list of acronyms (for example because a `.bib` entry could reference an acronym), you should run Biber before `makeglossaries`. If you expect the acronyms to influence citations (for example because the entry in the list of acronyms cites a particular `.bib` entry), you would run `makeglossaries` before Biber. In theory it's possible that both influence the other in which case you'd have to run Biber, LaTeX, LaTeX, `makeglossaries`, LaTeX, LaTeX, Biber, LaTeX, LaTeX.
In practice it probably makes little difference, though, because you should not delete the auxiliary files between runs and can just rerun Biber and `makeglossaries` periodically as you see fit.
Generally speaking compiling "too often" is not problematic. Compiling too little can be because references might not resolve properly due to missing or outdated forward data from auxiliary files.
---
Unfortunately, it seems that you managed to create a situation where a further LaTeX run is required, but LaTeX does not tell you so explicitly. Instead you just get the slightly cryptic warning about the reference and the ToC is off. Indeed, the following slightly reduced MWE does not even produce any rerun warning in the LaTeX run after the `makeglossaries` run, but it definitely needs to be compiled at least with
>
> LaTeX, `makeglossaries`, LaTeX, LaTeX
>
>
>
for the ToC to show correctly.
```
\documentclass[
listof=totoc,
bibliography=totoc,
]{scrreprt}
\usepackage[toc,]{glossaries}
\newacronym{Test}{Test}{Test Full}
\makeglossaries
\usepackage{hyperref}
\begin{document}
\tableofcontents
\chapter{Lorem Ipsum}
This is a \acrfull{Test}
\addchap{Foo}
Hullo
\printglossary[title={Acronyms}, type=\acronymtype]
\end{document}
```
Generally speaking, I recommend running LaTeX (and Biber and `makeglossaries` and whatever other tools you need) a few more times even if it does not seem necessary just in case. Tools like `latexmk` that monitor the auxiliary files and run LaTeX and friends automatically for you might also be able to help here.
| 3 | https://tex.stackexchange.com/users/35864 | 686118 | 318,306 |
https://tex.stackexchange.com/questions/686106 | 4 | I get the error: `Missing number, treated as zero.` trying to pass a counter to `\lipsum`. I feel like I might be forgetting some basic technique here, but I've unsuccessfully scoured the site to find out why the following doesn't work:
```
\documentclass{article}
\usepackage{lipsum}
\newcount\zz
\loop
\lipsum[\zz]
\advance\zz1
\ifnum\zz<60
\repeat
\end{document}
```
In case anyone's wondering why I would bother with this, when `\lipsum[1-60]` gives me all those paragraphs, it's because it gives them all in one go, whereas I want to add something to each element, so there would be other lines of code added to the loop.
In particular, the loop enables me to use the counter value, which is part of the reason for using a loop in the first place.
| https://tex.stackexchange.com/users/37070 | How to get lipsum to accept a count as a parameter | false | I'd use `expl3` for the job.
The command `\lipsumloop` has four arguments
* `#1` (optional, default 1) for the starting point
* `#2` for the end point
* `#3` is the material to be printed before the paragraph
* `#4` is the material to be printed after the paragraph
In the last two arguments you can use `#1` to stand for the current lipsum paragraph number.
```
\documentclass{article}
\usepackage{lipsum}
\ExplSyntaxOn
\NewDocumentCommand{\lipsumloop}{O{1} m +m +m}
{% #1 = start point, #2 = end point, #3 = pre, #4 = post
\int_step_inline:nnn { #1 } { #2 } { #3 \lipsum[##1] #4 }
}
\ExplSyntaxOff
\begin{document}
\lipsumloop[3]{6}{\par\addvspace{1ex}This is lipsum #1: \\}{~\textbullet~End of lipsum #1\par}
\end{document}
```
| 5 | https://tex.stackexchange.com/users/4427 | 686127 | 318,310 |
https://tex.stackexchange.com/questions/686125 | 0 | I want an article with two columns and a title section, but without a separate title page. I have achieved that, but the author's email address is not showing as a footnote (tried using `thanks` and `footnote`). Here is my example
```
\documentclass[12pt, a4paper, twocolumn]{article}
\usepackage{lipsum}
\usepackage[dvipsnames]{xcolor}
\usepackage[dvipdfm]{hyperref}
% redefine astract
\renewenvironment{abstract}
{\par\noindent\textbf{\abstractname}\ \ignorespaces \\}
{\par\noindent\medskip}
% title, author, abstract
\title{\textbf{Some clear title}}
\author{Jane Doe\footnote{\href{mailto:jane.doe@bla.bla}{jane.doe@bla.bla}}}
%\author{Jane Doe\thanks{\href{mailto:jane.doe@bla.bla}{jane.doe@bla.bla}}}
\newcommand{\abstractText}{\noindent%
\lipsum[1]
}
\begin{document}
% starting twocolumn environment, and defining a header text in the optional
% argument of \twocolumn, where the header text is written at top of the page
% in one column with the width of the whole page
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
{\color{gray}\hrule}
\bigskip
\begin{abstract}
\abstractText
\bigskip
{\color{gray}\hrule}
\bigskip
\end{abstract}
\end{@twocolumnfalse}
]
\section{Introduction}
\lipsum[2]
\section{Another section}
\lipsum[3]
\end{document}
```
Any hints on how to get the email address into the footnote is greatly appreciated.
| https://tex.stackexchange.com/users/120427 | Footnote not showing in article's maketitle when using twocolumn | true | The optional argument of `\twocolumn` is put into a box. So `\footnote` does not work. You can, e.g., use `\footnotetext` after the title:
```
\documentclass[12pt, a4paper, twocolumn]{article}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{hyperref}
% redefine astract
\renewenvironment{abstract}
{\par\noindent\textbf{\abstractname}\ \ignorespaces \\}
{\par\noindent\medskip}
% title, author, abstract
\title{\textbf{Some clear title}}
\author{Jane Doe\footnotemark}
%\author{Jane Doe\thanks{\href{mailto:jane.doe@bla.bla}{jane.doe@bla.bla}}}
\newcommand{\abstractText}{\noindent%
\lipsum[1]
}
\begin{document}
% starting twocolumn environment, and defining a header text in the optional
% argument of \twocolumn, where the header text is written at top of the page
% in one column with the width of the whole page
\twocolumn[
\begin{@twocolumnfalse}
\maketitle
{\color{gray}\hrule}
\bigskip
\begin{abstract}
\abstractText
\bigskip
{\color{gray}\hrule}
\bigskip
\end{abstract}
\end{@twocolumnfalse}
]
{\renewcommand*{\thefootnote}{\fnsymbol{footnote}}\stepcounter{footnote}%
\footnotetext{\href{mailto:jane.doe@bla.bla}{jane.doe@bla.bla}}}
\setcounter{footnote}{0}
\section{Introduction}
\lipsum[2]\footnote{a real footnote}
\section{Another section}
\lipsum[3]\footnote{another footnote}
\end{document}
```
This is indeed not really an automatic solution, but it works.
Another suggestion would be to use package `authblk` and then use `\saythanks`. See “[\thanks not creating footnote in twocolumn article](https://tex.stackexchange.com/questions/80210/thanks-not-creating-footnote-in-twocolumn-article)” for more information.
| 2 | https://tex.stackexchange.com/users/277964 | 686132 | 318,313 |
https://tex.stackexchange.com/questions/682319 | 3 | Feeding
```
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{newtxtext}
\usepackage{microtype}
\begin{document}
\textsc{}% doesn't matter what text we enter here
\end{document}
```
to pdflatex prints
```
Package microtype Info: Character `029' is missing
(microtype) in font `T1/ntxtlf/m/sc/10'.
(microtype) Ignoring protrusion settings for this character.
```
to the log (sometimes we do search for `missing` in the log to check whether there are any problems). If we drop `\usepackage[T1]{fontenc}`, we get a complaint about 013 instead of 029.
Which character (029 and 013 are just numbers and not characters) is missing where? What does the aforementioned message in the log tell us, especially given the fact that no text is output via `\textsc`? (You can even suppress the page number with `\pagestyle{empty}` to get really no text on the page at all.) Is this message something to worry about? If so, who should worry, and, (most importantly ) who is the culprit?
EDIT (based on the comments and answers of [Ulrike Fischer](http://tex.stackexchange.com/questions/682319/t1-font-encoding-newtxtext-and-microtype-result-in-package-microtype-info-ch#comment1692961_682319), [rallg](http://tex.stackexchange.com/questions/682319/t1-font-encoding-newtxtext-and-microtype-result-in-package-microtype-info-ch#comment1693007_682319), and [Stephen](http://tex.stackexchange.com/a/686135)): The message in the log is useless for the very input above and even annoying because it takes up space and distracts the author without need. However, if the input contains `\textsc{fl}`, we'd better be informed or even warned that the output does not contain a real ligature (because the output has the small capitals ꜰʟ instead). We still need the (now present) additional warning “Missing character: There is no ^^] in font ntx-Regular-tlf-sc-t1!” message in the log if the input contains `\textsc{\char29}`, and we wish that the part “^^]” be a bit less enigmatic.
| https://tex.stackexchange.com/users/292998 | T1 font encoding, newtxtext, and microtype result in “Package microtype Info: Character `029' is missing” | false | `char29` is the `fl` ligature. This is missing in the small caps font (`\textsc{...}`). As long as neither `\char29` not `fl` is used in small caps, there is nothing to worry about and the information from microtype can be ignored. Usually `fl` input is `FL` output in small caps (!), i.e. `fl` *is* not used in small caps output.
The [microtype](https://www.ctan.org/pkg/microtype) package provides the option `verbose` with values `true`, `false`, `errors`, and `silent` to adjust the amount of shown messages, but "Package microtype Info: Character ... is missing" is not affected by the setting of this option. The [silence](https://www.ctan.org/pkg/silence) package can be used to filter out unwanted warning and error messages, but the message here is neither a warning nor an error but an info, and thus it is not filtered out.
If you have a very strong need to never to see any info about a missing `fl` in `\textsc`, then you can put
```
\makeatletter
\let\originalMT@info@missing@char\MT@info@missing@char
\def\MT@info@missing@char{%
\def\privateMTc{029}%
\edef\privateMTv{\the\MT@toks}%
\ifx\privateMTc\privateMTv%
\def\privateMTc{sc}%
\ifx\privateMTc\f@shape%
\else%
\originalMT@info@missing@char%
\fi%
\else%
\originalMT@info@missing@char%
\fi%
}
\makeatother
```
in your preamble after loading `microtype`.
[With help from the comments by Ulrike Fischer, AlMa0, and rallg - thanks!]
| 2 | https://tex.stackexchange.com/users/6865 | 686135 | 318,314 |
https://tex.stackexchange.com/questions/686145 | 1 | I can set width of go to button in beamer presentation with the following code. How can I set height of go to button?
```
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Sample}
\begin{itemize}
\item \href{./myfile.pdf}{\beamergotobutton{\makebox[3cm]{Click here}}}
\end{itemize}
\end{frame}
\end{document}
```
I want to set height of go to button to say 2cm.
| https://tex.stackexchange.com/users/75476 | Set height of go to button in beamer class | true | Beamer hard codes the height of beamer buttons to 8pt. Unless you want to redefine the [complete button](https://github.com/josephwright/beamer/blob/main/base/themes/inner/beamerinnerthemedefault.sty#L266-L312), that's not easy to change.
However the beamer button is basically just a picture. You can replace it with any other drawing. For example you can recreate it in tikz:
```
\documentclass{beamer}
\usepackage{tikz}
\newcommand{\mygotobutton}[2][]{%
\begingroup%
\usebeamercolor{button border}%
\usebeamercolor{button}%
\begin{tikzpicture}[baseline]
\node[fill=button.bg!66, draw=button border.fg!66,rounded corners,align=center,#1] {\usebeamerfont{button}\usebeamercolor[fg]{button}\insertgotosymbol #2};
\end{tikzpicture}%
\endgroup%
}
\begin{document}
\begin{frame}
\frametitle{Sample}
\begin{itemize}
\item \href{./myfile.pdf}{\mygotobutton[text width=3cm,minimum height=2cm]{Click here}}
\item \href{./myfile.pdf}{\beamergotobutton{Click here}}
\end{itemize}
\end{frame}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/36296 | 686147 | 318,318 |
https://tex.stackexchange.com/questions/21838 | 110 | Suppose I have a document with multiple include or input statements
```
\input{fileA}
\input{fileB}
```
etc.
Is there an easy way to generate a single `.tex` file where `\input{fileA}` is replaced by the actual content of `fileA` etc. without copying it manually?
| https://tex.stackexchange.com/users/4011 | Replace \input{fileX} by the content of fileX automatically | false | Late to the party, but here's another python script (let's call it `merge-tex.py`) for the same thing. It could be shorter if there were no diagnostics, but it's not recursive, and doesn't do `\include`.
Use as `python merge_tex.py main.tex merge.tex`.
```
import sys
import re
from pathlib import Path
if len(sys.argv) < 3:
raise ValueError("Expected two arguments")
in_file = Path(sys.argv[1])
out_file = Path(sys.argv[2])
# https://regex101.com/r/azkAmW/1
regex = re.compile(r"^([^%\\]*)(.*)\\input{(.*)}(.*)$")
with open(out_file, "w") as fout:
with open(in_file, "r") as fin:
print(f"Reading: {in_file}")
for line in fin:
match = regex.findall(line)
if not match:
fout.write(line)
else:
# regex groups
start, comment, input_file, end = match[0]
if comment: # nothing to do
fout.write(line)
else:
if start:
fout.write(start)
print(f"Merging: {input_file}.tex")
with open(Path(input_file + ".tex"), "r") as finput:
[fout.write(inp) for inp in finput]
if end:
fout.write(end)
print(f"Finished. Merged to: {out_file}")
```
| 0 | https://tex.stackexchange.com/users/141884 | 686148 | 318,319 |
https://tex.stackexchange.com/questions/686146 | 2 | I would like to set these diagrams side by side. Any help would be appreciated.
```
{\Large$$
\begin{tikzcd}
X\arrow{r}{i}\arrow[swap]{dr}{j} & M \arrow{d}{j'}\\
& N
\end{tikzcd}
$$}
```
and
```
{\Large$$
\begin{tikzcd}
X\arrow{r}{j}\arrow[swap]{dr}{i} & N \arrow{d}{i'}\\
& M
\end{tikzcd}
$$}
```
| https://tex.stackexchange.com/users/59292 | Commutative diagrams side by side | false | Is this what you mean?
```
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}
X\arrow{r}{i}\arrow[swap]{dr}{j} & M \arrow{d}{j'}\\
& N
\end{tikzcd}\hspace{1cm}
\begin{tikzcd}
X\arrow{r}{j}\arrow[swap]{dr}{i} & N \arrow{d}{i'}\\
& M
\end{tikzcd}
\]
\end{document}
```
| 3 | https://tex.stackexchange.com/users/125871 | 686149 | 318,320 |
https://tex.stackexchange.com/questions/685966 | 0 | To conform with the style of the journal *Past and Present*, I am hoping to use `biblatex-chicago` to produce the following output for inline citations of articles (in this case `\cite{walsham}`):
>
> Alexandra Walsham, ‘The Reformation and the Disenchantment of the World Reassessed’, *Historical Journal*, li, 2 (2008).
>
>
>
where "li" is the Roman numeral for 51 and "2" is the issue number. Note also that there is a comma after the journal title and that the article's full page range is suppressed even in the absence of a specific page citation in the `\cite` command.
At the same time, if the `volume` field is left blank but the `number` field is not, the output should look like this (`\cite{markiewicz}`):
>
> Christopher Markiewicz, ‘Europeanist Trends and Islamicate Trajectories in Early Modern Ottoman History’, *Past and Present*, no. 239 (2018).
>
>
>
i.e., still with a comma after the journal title, then `no.~\unspace` or the like and then the `number` field.
Is there a simple way to tweak the macros to do this?
MWE
===
```
\documentclass{article}
\usepackage[notes]{biblatex-chicago}
\begin{filecontents*}{\jobname.bib}
@article{walsham,
author = {Alexandra Walsham},
journal = {Historical Journal},
volume = {51},
number = {2},
pages = {497--528},
title = {The Reformation and the Disenchantment of the World Reassessed},
year = {2008}
}
@article{markiewicz,
title={Europeanist trends and Islamicate trajectories in early modern Ottoman history},
author={Markiewicz, Christopher},
journal={Past and Present},
number={239},
pages={265--281},
year={2018}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{walsham}
\cite{markiewicz}
\end{document}
```
| https://tex.stackexchange.com/users/44742 | tweak biblatex-chicago for the journal Past and Present | true | As mentioned in the comments, `biblatex-chicago` is a very complex beast and even supposedly simple modifications can be surprisingly complex themselves.
I'd suggest the following. Note that I removed the `pages` field in citations only for `@article` entries for now, since that is the only thing you asked about.
```
\documentclass{article}
\usepackage[notes]{biblatex-chicago}
\DeclareFieldFormat{jourvol}{%
\ifinteger{#1}
{\Rn{#1}}
{#1}}
\DeclareFieldFormat{journum}{%
\iffieldundef{volume}
{\ifboolexpr{%
test {\ifnumerals{#1}}%
and
not test {\ifnumeral{#1}}%
}%
{\bibstring{numbers}\addspace #1}%
{\bibstring{number}\addspace #1}}
{#1}}
\renewbibmacro*{cjournal+ser+vol+num}{%
\usebibmacro{journal+sub}{in}%
\setunit{\addspace}%
\printlist[periodplace]{location}%
\newcunit
\printfield[jourser]{series}%
\newcunit
\printfield[jourvol]{volume}%
\setunit{\addcomma\addspace}%
\printfield[journum]{number}}
\AtEveryCitekey{%
\ifentrytype{article}
{\clearfield{pages}}
{}}
\begin{filecontents*}{\jobname.bib}
@article{walsham,
author = {Alexandra Walsham},
journal = {Historical Journal},
volume = {51},
number = {2},
pages = {497--528},
title = {The Reformation and the Disenchantment of the World Reassessed},
year = {2008},
}
@article{markiewicz,
title = {Europeanist trends and Islamicate trajectories in early modern Ottoman history},
author = {Markiewicz, Christopher},
journal = {Past and Present},
number = {239},
pages = {265--281},
year = {2018},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\cite{walsham}
\cite{markiewicz}
\printbibliography
\end{document}
```
| 1 | https://tex.stackexchange.com/users/35864 | 686152 | 318,322 |
https://tex.stackexchange.com/questions/17656 | 7 | In my `.tex` document I have
```
[...]
\nocite{*}
\bibliographystyle{amsplain}
\bibliography{bibliografie}
\end{document}
```
And I have the `bibliografie.bib` file in the same folder. However, why the bibliography does not appear at the end of the document?
And `bibliografie.bib` contains the following:
```
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
@BOOK{latexbook,
author = "Leslie Lamport",
title = "{\LaTeX \rm:} {A} Document Preparation System",
publisher = "Addison-Wesley",
year = 1986
}
```
| https://tex.stackexchange.com/users/4774 | Bibliography does not appear | false | In case you are first stumbling upon this search result, looking for an answer on this question while not matching the code in the original post, the could be that your `\bibliographystyle{...}` is commented out, is missing or has an illegal argument. There should be exactly one `\bibliographystyle{}` in your document.
When I was working in a well-known online LaTeX editor, I figured out, `\bibliographystyle{}` is required for compiling the bibliography. Uncommenting it made it show up.
| 0 | https://tex.stackexchange.com/users/297342 | 686158 | 318,325 |
https://tex.stackexchange.com/questions/686160 | 0 | How can I add empty line before and after every graphic, table, and algorithm? I have managed to find something like this:
```
% Load the floatrow package
\usepackage{floatrow}
% Set the spacing around algorithms
\floatsetup[algorithm]{capposition=top,skip=10pt}
% Set the spacing around graphics
\floatsetup[figure]{capposition=top,skip=10pt}
% Set the spacing around tables
\floatsetup[table]{capposition=top,skip=10pt}
```
But it doesn't even compile - `Undefined control sequence`
Edit
Fixed - use this:
```
% Load the caption package
\usepackage{caption}
% Set the spacing around algorithms
\captionsetup[algorithm]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around graphics
\captionsetup[figure]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around tables
\captionsetup[table]{aboveskip=10pt,belowskip=10pt}
```
| https://tex.stackexchange.com/users/289855 | Add empty line before and after every object (table, graphic, algorithm) | false | You can maybe use the `\vspace{Xmm}` where X is the size of the empty space you want
| -1 | https://tex.stackexchange.com/users/297341 | 686162 | 318,326 |
https://tex.stackexchange.com/questions/686160 | 0 | How can I add empty line before and after every graphic, table, and algorithm? I have managed to find something like this:
```
% Load the floatrow package
\usepackage{floatrow}
% Set the spacing around algorithms
\floatsetup[algorithm]{capposition=top,skip=10pt}
% Set the spacing around graphics
\floatsetup[figure]{capposition=top,skip=10pt}
% Set the spacing around tables
\floatsetup[table]{capposition=top,skip=10pt}
```
But it doesn't even compile - `Undefined control sequence`
Edit
Fixed - use this:
```
% Load the caption package
\usepackage{caption}
% Set the spacing around algorithms
\captionsetup[algorithm]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around graphics
\captionsetup[figure]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around tables
\captionsetup[table]{aboveskip=10pt,belowskip=10pt}
```
| https://tex.stackexchange.com/users/289855 | Add empty line before and after every object (table, graphic, algorithm) | false | See length `\intextsep`. It is vertical space between floats and surrounding test:
```
\documentclass{article}
\usepackage{graphicx}
\setlength\intextsep{2\baselineskip}
\usepackage{lipsum}
\begin{document}
\lipsum[66]
\begin{figure}[ht]
\includegraphics{example-image}
\caption{test}
\end{figure}
\lipsum[66]
\end{document}
```
| 1 | https://tex.stackexchange.com/users/18189 | 686167 | 318,329 |
https://tex.stackexchange.com/questions/686146 | 2 | I would like to set these diagrams side by side. Any help would be appreciated.
```
{\Large$$
\begin{tikzcd}
X\arrow{r}{i}\arrow[swap]{dr}{j} & M \arrow{d}{j'}\\
& N
\end{tikzcd}
$$}
```
and
```
{\Large$$
\begin{tikzcd}
X\arrow{r}{j}\arrow[swap]{dr}{i} & N \arrow{d}{i'}\\
& M
\end{tikzcd}
$$}
```
| https://tex.stackexchange.com/users/59292 | Commutative diagrams side by side | false | If you really insist on `\Large` (but you shouldn't), define your own environment. And it's better to use the “modern” syntax for arrows.
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\newsavebox{\tikzcdbox}
\newenvironment{Largetikzcd}
{\begin{lrbox}{\tikzcdbox}\Large\begin{tikzcd}}
{\end{tikzcd}\end{lrbox}\usebox{\tikzcdbox}}
\begin{document}
\[
\begin{Largetikzcd}
X \arrow[r,"i"] \arrow[dr,swap,"j"] & M \arrow[d,"j'"] \\
& N
\end{Largetikzcd}
\qquad
\begin{Largetikzcd}
X \arrow[r,"j"] \arrow[dr,swap,"i"] & N \arrow[d,"i'"] \\
& M
\end{Largetikzcd}
\]
\[
\begin{tikzcd}
X \arrow[r,"i"] \arrow[dr,swap,"j"] & M \arrow[d,"j'"] \\
& N
\end{tikzcd}
\qquad
\begin{tikzcd}
X \arrow[r,"j"] \arrow[dr,swap,"i"] & N \arrow[d,"i'"] \\
& M
\end{tikzcd}
\]
\end{document}
```
Never use `$$` in a LaTeX `document` environment.
| 3 | https://tex.stackexchange.com/users/4427 | 686168 | 318,330 |
https://tex.stackexchange.com/questions/686170 | 1 | When I try to compile the code below, I get an error message saying "missing number" and "illegal of measure" in reference to the specific part [\hskip.017in -1,\sin{a}\hskip.017in]. I cannot for the life of me figure out what I'm doing wrong. Please help. Thank you!
```
$$ f^{-1}\big((-\infty,a\hskip.017in]\big)\ =\ \left\{\begin{array}{ccc}
[\hskip.017in -1,1\hskip.017in] & {} & a>\frac{\pi}{2} \\
{} & {} & {} \\
[\hskip.017in -1,\sin{a}\hskip.017in] & {} & a\in\left[\hskip.017in -\frac{\pi}{2},\frac{\pi}{2}\hskip.017in \right] \\
{} & {} & {} \\
\varnothing & {} & a<-\frac{\pi}{2} \\
\end{array}\right.\ \in\ \mathcal{L} $$
```
| https://tex.stackexchange.com/users/272533 | having trouble compiling an array | true | Just add `{}` right before `[\hskip.017in -1,\sin{a}\hskip.017in]`. Otherwise, LaTeX will think that you are trying to increase the space between lines using an expression which is not a length.
Besides, I have a suggestion for you: [use `\[...\]` instead of `$$...$$`](https://tex.stackexchange.com/q/503/134805).
| 2 | https://tex.stackexchange.com/users/134805 | 686172 | 318,332 |
https://tex.stackexchange.com/questions/686108 | 0 | I use Windows 11, miktex 4.9 and texstudio. And I would like to know how to install fonts from the font catalog available at <https://tug.org/FontCatalogue/>.
All fonts that install using pdflatex do not give an error. I only use fonts that I download from the CTAN that the catalog directs and using xelatex, but I use fonts that are supported by the mathematical environment.
So, I want to know how to install diverse fonts from the font catalog in pdflatex, xelatex and install fonts that have math support, can someone help me?
| https://tex.stackexchange.com/users/251307 | How to install any font from the latex font catalog on windows? | false | If the fonts are in TrueType or OpenType format, download them (from their own project page, or from CTAN), select the font files in the download folder (in `.ttf`, `.ttc`, `.otf` or `.otc` format) right-click, and “Install for All Users.” Installing only for your own user account, without administrator privileges, would put the files in a hidden directory of your user folder that TeX Live doesn’t know about.
If what you actually want is to get Office Equation Editor to use a font like TeX’s default, download and install [New Computer Modern.](https://ctan.org/tex-archive/fonts/newcomputermodern/otf)
If it’s a legacy 8-bit font, you can’t (without heroic efforts at retrocomputing). Although Windows understands one type of font file from the ’90s that PDFTeX still uses (Adobe PostScript Type 1, `.pfb` plus `.afm`), it doesn’t support any TeX character sets or font metrics.
Most popular TeX fonts have an OpenType/Truetype fork, or else are clones of a commercial font that’s available for Windows. For math fonts, [we maintain a list here.](https://tex.stackexchange.com/questions/425098/which-opentype-math-fonts-are-available)
| 2 | https://tex.stackexchange.com/users/61644 | 686176 | 318,335 |
https://tex.stackexchange.com/questions/686177 | 2 | I am working with a language that has voiceless nasals, and I would like to be able to put the ring on top of the [ŋ] glyph.
So far, I have only been able to use `\textipa{\textsubring{N}}`, which puts the ring below the glyph. The math mode command `\mathring` does not seem to play well with the `\textipa` environment. Any suggestions would be most welcome!
| https://tex.stackexchange.com/users/71312 | How do I put a devoicing ring on top of [ŋ] using TIPA? | true | The version that goes above the letter is called simply "ring", and has the shortcut `\r`: `\r{N}`. This works both inside and outside the textipa environment.
| 3 | https://tex.stackexchange.com/users/169121 | 686178 | 318,336 |
https://tex.stackexchange.com/questions/686156 | 1 | I'm trying to write a book (documentclass "memoir") and I would like each chapter to begin alternatively with a greek or arabic letter.
I have no problem with greek thanks to the package "babel", by contrast whatever attempt to write a-single-arabic-letter creates big conflicts in my template, such as compiling errors, and other problems (such as, the letter is automatically written on the right hand side: and it makes sense, of course, but I just need it as a symbol).
I've looked through many other questions, which usually concern writing sentences, and I wonder if there is a simpler method that fits my case.
| https://tex.stackexchange.com/users/297340 | Writing greek and arabic letters in memoir | false | If you’re trying to write a book, you are not submitting to the arXiv or a professor who still forces you to use legacy 8-bit fonts in 2023.
So compile with LuaLaTeX and use modern OpenType fonts. If all you need are single letters from another alphabet, you don’t even need to bother with Babel. Just declare your Arabic and (if necessary) Greek fonts with `fontspec`, such as `\newfontfamily\arabicfont{Amiri}[Script=Arabic, Scale=MatchLowercase]`, and then write something like `{\arabicfont ب}`. (You can optionally `\DeclareTextFontCommand\textarabic{\arabicfont}` to be able to write `\textarabic{ب}`.)
If you want to use the letters in math mode, I recommend loading `unicode-math` and writing something like
```
\newcommand\mathbah{\mathord{\textup{\textarabic ب}}}
```
| 1 | https://tex.stackexchange.com/users/61644 | 686180 | 318,337 |
https://tex.stackexchange.com/questions/686133 | 0 | I am having an issue with the positioning of the table in LaTex.
This is the code for the table:
```
\begin{tabular}
{|m{2cm}|m{2cm}|m{1.5cm}|l|}
\hline Title&Methodology&Dataset&Accuracy\\ \hline A Supervised Machine Learning Approach to Detect Fake Online Reviews & Naive Bayes, Decision Tree, Random Forest, and Support Vector Machine & Amazon reviews &91.45\%\\
\hline Declarative Programming Approach for Fake Review Detection & Declarative Programming Approach & Hotel reviews & 94.87\% \\
\hline Detecting Fake Reviews through Sentiment Analysis Using Machine Learning Techniques & Sentiment Analysis with Naive Bayes and SVM & Hotel Reviews & 87\% \\
\hline Fake Review Detection Based on Multiple Feature Fusion and Rolling Collaborative Training & Naive Bayes, Decision Tree, Random Forest, and Support Vector Machine & Amazon reviews & 97.98\% \\
\hline Impact of Sentiment Analysis in Fake Online Review Detection & Naive Bayes, Random Forest, and Support Vector Machine & E-commerce website & 96.36\% \\
\hline The Effect of Fake Reviews on e-Commerce During and After the Covid-19 Pandemic: SKL-Based Fake Reviews Detection. & Machine learning algorithm based on the Scikit-Learn library & E-commerce platform & 95.22\% \\
\hline Using Boosting Approaches to Detect Spam Reviews & AdaBoost, Gradient Boosting, and XGBoost, using various features such as n-grams, part-of-speech tags & E-commerce websites & 95.4\% \\
\hline
\end{tabular}
```
The layout of the document is the IEEE conference paper. The content is divided into two columns and my table is on the right column in the middle. Since my table has 8 columns, it is moving all together to the left column on the next page. I want to break the table so that it could fit in.
I have tried using float, and h! commands, but in vain.
| https://tex.stackexchange.com/users/297329 | Unable to position table in Latex | false | * You not provide MWE (Minimal Working Example), a small but colete document, which we can test as it is.
* Consequently we haven't any information about your document page layout.
* In table fragment you declare six columns but use only four!
* I suggest to use `X` column type for the first three columns and `S` column type for the last one, and reduce column separation too.
* Using the `tblr` of the `tabularray` package make table code shorter:
```
\documentclass{article}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}% For dummy text. Don't use in a real document
\usepackage{ragged2e}
\usepackage{tabularray}
\UseTblrLibrary{siunitx}
\usepackage{lipsum}
\begin{document}
\begin{table}[ht]
\begin{tblr}{hlines, vlines,
colspec = { *{3}{X[j, cmd=\RaggedRight\hskip0pt]} Q[c, m, si={table-format=3.2{\%}}]},
cell{2-Z}{4} = {appto=\%},
colsep = 3pt,
row{1} = {guard, c}
}
Title
& Methodology
& Dataset
& Accuracy \\
A Supervised Machine Learning Approach to Detect Fake Online Reviews
& Naive Bayes, Decision Tree, Random Forest, and Support Vector Machine
& Amazon reviews
& 91.45 \\
Declarative Programming Approach for Fake Review Detection
& Declarative Programming Approach
& Hotel reviews
& 94.87 \\
Detecting Fake Reviews through Sentiment Analysis Using Machine Learning Techniques
& Sentiment Analysis with Naive Bayes and SVM
& Hotel Reviews
& 87 \\
Fake Review Detection Based on Multiple Feature Fusion and Rolling Collaborative Training
& Naive Bayes, Decision Tree, Random Forest, and Support Vector Machine
& Amazon reviews
& 97.98 \\
Impact of Sentiment Analysis in Fake Online Review Detection
& Naive Bayes, Random Forest, and Support Vector Machine
& E-commerce website
& 96.36 \\
The Effect of Fake Reviews on e-Commerce During and After the Covid-19 Pandemic: SKL-Based Fake Reviews Detection.
& Machine learning algorithm based on the Scikit-Learn library
& E-commerce platform
& 95.22 \\
Using Boosting Approaches to Detect Spam Reviews
& AdaBoost, Gradient Boosting, and XGBoost, using various features such as n-grams, part-of-speech tags
& E-commerce websites
& 95.4 \\
\end{tblr}
\end{table}
\end{document}
```
(red lines indicate page layout)
| 2 | https://tex.stackexchange.com/users/18189 | 686185 | 318,339 |
https://tex.stackexchange.com/questions/686140 | 2 | This MWE
```
\documentclass[a4paper]{article}
\usepackage{amsmath}
%\usepackage{txfonts}
\def\ket#1{\left\lvert#1\right\rangle}
\begin{document}
\begin{equation*}
\ket{\psi_{0,A}}
\end{equation*}
\end{document}
```
produces a nice output with the `\lvert` and the `\rangle` having the same height.
But if I uncomment `\usepackage{txfonts}`, I get the `\lvert` higher than the `\rangle`.
What happens?
| https://tex.stackexchange.com/users/297331 | Font problem with txfonts | false | Using `\def\ket#1{\lvert\,#1\,\rangle}` instead of `\def\ket#1{\left\lvert#1\right\rangle}` there is not problem. You will not have `\lvert` higher than the `\rangle`.
```
\documentclass[a4paper]{article}
\usepackage[OT1]{fontenc}
\usepackage{amsmath}
\usepackage{txfonts}
\def\ket#1{\lvert\,#1\,\rangle}
\begin{document}
\begin{equation*}
\ket{\psi_{0,A}}
\end{equation*}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/117876 | 686188 | 318,340 |
https://tex.stackexchange.com/questions/686154 | 0 | I am trying to set the depths of toc and etoc to different values, but I can't seem to work it out. The depth of `etoc` follows that of `toc`. Here is a MWE:
```
\documentclass[
10=2pt, % The default document font size, options: 10pt, 11pt, 12pt
%oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side
english, % ngerman for German
singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
%draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
%nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
toctotoc, % Uncomment to add the main table of contents to the table of contents
parskip, % Uncomment to add space between paragraphs
nohyperref, % Uncomment to not load the hyperref package
headsepline, % Uncomment to get a line under the header
%chapterinoneline, % Uncomment to place the chapter title next to the number on one line
%consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis} % The class file specifying the document structure
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{ragged2e}
\usepackage{booktabs,multirow}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta,fit,matrix,shapes,positioning,decorations.pathreplacing,calc,calligraphy,shadows}
\usepackage{svg}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{csquotes}
\usepackage{color}
\usepackage{colortbl}
\definecolor{darkgreen}{RGB}{0,100,0}
\definecolor{khrawi2}{RGB}{220,200,90}
\definecolor{khrawi}{RGB}{85,34,0}
\definecolor{yellow}{RGB}{255,255,0}
\definecolor{noir}{RGB}{0,0,0}
\definecolor{gray}{RGB}{200,51,51}
\definecolor{mapink}{RGB}{255,169,169}
\definecolor{mablue}{RGB}{33,190,208}
\definecolor{hotpink}{RGB}{255,105,180}
\colorlet{linkequation}{darkgreen}
\usepackage{enumitem}
\usepackage{nicematrix}
\usepackage{subcaption}
\captionsetup[subfigure]{labelfont=rm}
\usepackage{circuitikz}
\usepackage{lettrine}
\usepackage{geometry}
\usepackage{amssymb}
\usepackage{asymptote}
\usepackage{mathtools}
\usepackage{etoc}
\usepackage{xfrac}
\usepackage{nicefrac}
\usepackage{subcaption}
\usepackage{bigdelim}
\usepackage{datetime}
\usepackage{slashbox}
\usepackage{scalefnt}
\usepackage{float}
\usepackage{tocloft}
\usepackage{mathpazo} % Use the Palatino font by default
\usepackage[style=ieee,backend=bibtex]{biblatex}
\usepackage{lipsum}
\begin{document}
% \setcounter{tocdepth}{4}
% \etocsettocdepth{3}
\tableofcontents
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\chapter{chapter}
\etocsettocdepth{1}
\localtableofcontents
\section{1}
\section{2}
\chapter{chapter}
\etocsettocdepth{1}
\localtableofcontents
\section{1}
\subsection{test}
a
\section{2}
b
\subsection{121}
c
\subsection{122}
e
\subsection{123}
f
\chapter{chapter}
\etocsettocdepth{4}
\localtableofcontents
\section{1}
\subsection{21}
\section{2}
\subsection{22}
\subsubsection{22}
\end{document}
```
| https://tex.stackexchange.com/users/225587 | different depths for etoc and toc | true | The line
```
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
```
is causing what you see. It hardcodes the tocdepth being set to 1 inside the `.toc` file so has an effect on all usages of `\tableofcontents` or the `etoc` versions.
Try this
```
\documentclass{report}
\usepackage[T1]{fontenc}
% \usepackage{geometry}
\usepackage{tocloft}% always load before etoc
\usepackage{etoc}
\begin{document}
% better to use \etocsetnexttocdepth to \etocsettocdepth
% (because of hyperref influencing bookmarks according to tocdepth)
% \setcounter{tocdepth}{4}
\etocsetnexttocdepth{2}
\renewcommand{\contentsname}{MAIN TOC (depth 2)}
\tableofcontents
\renewcommand{\contentsname}{Local contents}
% THIS IS COMMENTED OUT ELSE IT MAKES IT IMPOSSIBLE
% TO SHOW ANY SECTIONING DEEPER THAN SECTION
% \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\chapter{chapter one (TOC with depth 1)}
\etocsetnexttocdepth{1}
\localtableofcontents
\section{1}
a
\subsection{11}
b
\subsection{12}
c
\section{2}
d
\subsection{21}
e
\chapter{chapter two (TOC with depth 2)}
\etocsetnexttocdepth{2}
\localtableofcontents
\section{1}
\subsection{test}
a
\section{2}
b
\subsection{121}
c
\subsection{122}
e
\subsection{123}
f
\chapter{chapter three (TOC with depth 4)}
\etocsetnexttocdepth{4}
\localtableofcontents
\section{1}
\subsection{21}
\section{2}
\subsection{22}
\subsubsection{22}
hello
\paragraph{\TeX} world
\end{document}
```
you need at least two compilations
| 1 | https://tex.stackexchange.com/users/293669 | 686189 | 318,341 |
https://tex.stackexchange.com/questions/686181 | 1 | I am trying to align vertically this 3 circuits. I would like to align the on top, instead of bottom part (they automatically align bottom with that code).
Also, if possible, to know how to align the at the same 'pole' height. Thank you.
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{tikz,circuitikz}
\usepackage[singlelinecheck=off]{caption}
\usepackage{float}
\begin{figure}[H]
\begin{minipage}{\textwidth}
\renewcommand{\arraystretch}{1.0}
\centering
\Large
\begin{tabular}{ccc}
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,3) to [R, l=$\mathbf{R_0}$,o-] (2,3) -- (2,4)
to [C, l=$\mathbf{Q_{1}}$] (6,4) -- (6,3)
to [short, -o] (7,3)
(2,3) -- (2,2) to [R, l=$\mathbf{R_1}$] (6,2) -- (6,3);
\end{circuitikz}
} &
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (8,5) -- (8,4)
to [short, -o] (9,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (8,3)
(4,2) -- (4,1) to [R, l=$R_2$] (8,1) -- (8,4);
\end{circuitikz}
} &
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (9,5) -- (9,4)
to [short, -o] (10,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (9,3)
(4,2) -- (4,0) to [R, l=$R_2$] (6,0) -- (6,1)
to [R, l=$R_3$] (9,1)
(6,0) -- (6,-1) to [C, l=$Q_{3}$] (9,-1) -- (9,4);
\end{circuitikz}
}\\
\small(a) Randles & \small(b) 2 TC & \small(b) 3 TC
\end{tabular}
\end{minipage}
\vspace{-3pt}
\captionsetup{labelfont=bf,labelsep=period,font=small}
\caption{description}
\label{fig:circuits}
\end{figure}
```
| https://tex.stackexchange.com/users/293308 | How can I align vertically/on top tikz pictures (circuitikz) in minipage/figure/tabular environment? | false | Finally I managed to solve it using the `minipage` environment command **\raisebox**.
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{tikz,circuitikz}
\usepackage[singlelinecheck=off]{caption}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\begin{minipage}{\textwidth}
\renewcommand{\arraystretch}{1.0}
\centering
\Large
\begin{tabular}{ccc}
\raisebox{0.8\height}{\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,3) to [R, l=$\mathbf{R_0}$,o-] (2,3) -- (2,4)
to [C, l=$\mathbf{Q_{1}}$] (6,4) -- (6,3)
to [short, -o] (7,3)
(2,3) -- (2,2) to [R, l=$\mathbf{R_1}$] (6,2) -- (6,3);
\end{circuitikz}
}} &
\raisebox{0.14\height}{\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (8,5) -- (8,4)
to [short, -o] (9,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (8,3)
(4,2) -- (4,1) to [R, l=$R_2$] (8,1) -- (8,4);
\end{circuitikz}
}} &
\raisebox{-0.19\height}{\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (9,5) -- (9,4)
to [short, -o] (10,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (9,3)
(4,2) -- (4,0) to [R, l=$R_2$] (6,0) -- (6,1)
to [R, l=$R_3$] (9,1)
(6,0) -- (6,-1) to [C, l=$Q_{3}$] (9,-1) -- (9,4);
\end{circuitikz}
}}\\
\small$R(QR)$ & \small$R(Q(R(QR)))$ & \small$R(Q(R(Q(R(QR)))))$ \\
\small(a) Randles & \small(b) 2 TC & \small(c) 3 TC
\end{tabular}
\end{minipage}
\vspace{-3pt}
\captionsetup{labelfont=bf,labelsep=period,font=small}
\caption{Representación de los circuitos equivalentes modelados en este trabajo.}
\label{fig:circuitos}
\end{figure}
\end{document}
```
Another options/solutions/advises will be apreciated anyway. I hope my answer will be useful anyway.
| 0 | https://tex.stackexchange.com/users/293308 | 686190 | 318,342 |
https://tex.stackexchange.com/questions/686140 | 2 | This MWE
```
\documentclass[a4paper]{article}
\usepackage{amsmath}
%\usepackage{txfonts}
\def\ket#1{\left\lvert#1\right\rangle}
\begin{document}
\begin{equation*}
\ket{\psi_{0,A}}
\end{equation*}
\end{document}
```
produces a nice output with the `\lvert` and the `\rangle` having the same height.
But if I uncomment `\usepackage{txfonts}`, I get the `\lvert` higher than the `\rangle`.
What happens?
| https://tex.stackexchange.com/users/297331 | Font problem with txfonts | false | Well, you found another of the several reasons for not using `txfonts`. It was a good attempt at getting Times compatible math symbols, but it's plagued with a lot of inconsistencies and bad kernings.
Use NewTX instead.
However you should use neither `\def` nor `\left` and `\right`. See the manual of `mathtools` for `\DeclarePairedDelimiter`.
```
\documentclass[a4paper]{article}
\usepackage{newtxtext,newtxmath}
\usepackage{mathtools}% also loads amsmath
\DeclarePairedDelimiter\ket{\lvert}{\rangle}
\begin{document}
\begin{equation*}
\ket{\psi_{0,A}} + \ket*{\frac{\psi_{0,A}}{2}}
\end{equation*}
Now compare $\ket{\psi_{j}}$ with $\left\lvert\psi_{j}\right\rangle$
\end{document}
```
I added the second part to show why you should not use `\left` and `\right` by default: you see that in the second version (equivalent to your definition) the delimiters are oversized for no reason.
| 3 | https://tex.stackexchange.com/users/4427 | 686193 | 318,343 |
https://tex.stackexchange.com/questions/686191 | 3 | I like to set up a custom environment `tabularmatrix` such that I use it in the math mode as follows:
```
\[
\begin{tabularmatrix}
a & b & c \\
d & e & f \\
\end{tabularmatrix}
\]
```
My desired output from it should be as same as obtained from:
```
\[
\begin{tabular}{|c|c|c|}
\hline
$a$ & $b$ & $c$ \\
\hline
$d$ & $e$ & $f$ \\
\hline
\end{tabular}
\]
```
How should I optimally define the custom command `tabularmatrix`?
| https://tex.stackexchange.com/users/114006 | Custom environment to create table-like matrix | false | If you don't need to nest arrays or other objects using `\\`, you can do it as follows. Any number of columns are accepted, as long as they're at most `MaxMatrixCols`, like for `matrix` in `amsmath`; increase the counter's value if needed.
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\ExplSyntaxOn
\NewDocumentEnvironment{cagedmatrix}{b}
{
% split the input at \\
\seq_set_split:Nnn \l_tmpa_seq { \\ } { #1 }
% check for a missing trailing \\
\seq_pop_right:NN \l_tmpa_seq \l_tmpa_tl
\tl_if_empty:NF \l_tmpa_tl { \seq_put_right:NV \l_tmpa_seq \l_tmpa_tl }
% build the array, inserting \\ \hline between rows
\array{|*{\value{MaxMatrixCols}}{c|}}\hline
\seq_use:Nn \l_tmpa_seq { \\ \hline }
% finish up
\\ \hline
\endarray
}{}
\ExplSyntaxOff
\begin{document}
\[
\begin{cagedmatrix}
a & b & c \\
d & e & f \\
\end{cagedmatrix}
\quad
\begin{cagedmatrix}
a & b & c \\
d & e & f
\end{cagedmatrix}
\]
\end{document}
```
You may possibly be interested in `ytableau`, though.
| 4 | https://tex.stackexchange.com/users/4427 | 686197 | 318,344 |
https://tex.stackexchange.com/questions/686187 | 2 | When trying to make a sequence of graphs of step functions, I wrote the following code snippet:
```
\begin{tikzpicture}
\pgfmathsetmacro{\n}{2^3};
\pgfmathsetmacro{\step}{1/\n};
\foreach \i in {0,\step,...,(\n-1)*\step}
{\draw[-,thick,blue] (\i,{\i*2})--({\i+\step},{\i*2});}
\end{tikzpicture}
```
The idea is that I would like to define variables `\n` and `\step` such that all I have to do is adjust the value `\n` is set to, and then it will draw a step function in that many equal-sized pieces, blahblahblah. I will use this to make many different pictures within the same document.
However, it seems that defining variables in this way is not legal -- at least, I think so, since when I write this without variables it seems to work fine.
Is there a way to define variables "globally" within a `tikzpicture` environment?
---
It suddenly occurs to me ... could I just do the following?
```
\begin{tikzpicture}
\foreach \n in {2^3} {
\foreach \step in {1/n} {
\foreach \i in {0,\step,...,(\n-1)*\step}
{\draw[-,thick,blue] (\i,{\i*2})--({\i+\step},{\i*2});}
}}
\end{tikzpicture}
```
Even if it works, it sure seems like a fragile hack ... and I would guess there is some reason why I've never seen anyone suggest doing this ... although I can't actually name a reason why it should be bad.
Is there a reason why this wouldn't work or is bad?
---
Update: Tested it out, doesn't quite work although doesn't utterly break, but still trying to understand why it's doing what it's doing.
| https://tex.stackexchange.com/users/62274 | Illegal unit, and missing number when trying to define variables | false | I'd use a better floating point system.
```
\documentclass{article}
\usepackage{tikz}
\ExplSyntaxOn
\NewDocumentCommand{\fpstep}{mmmm}
{
\fp_step_inline:nnnn { #1 } { #2 } { #3 } { #4 }
}
\NewDocumentCommand{\definefpvar}{mm}
{
\fp_zero_new:c { l_addem_fpvar_#1_fp }
\fp_set:cn { l_addem_fpvar_#1_fp } { #2 }
}
\NewExpandableDocumentCommand{\fpvar}{m}
{
\fp_use:c { l_addem_fpvar_#1_fp }
}
\ExplSyntaxOff
\begin{document}
\begin{tikzpicture}
\definefpvar{n}{2^3}
\definefpvar{step}{1/(\fpvar{n})}
\fpstep{0}{\fpvar{step}}{(\fpvar{n}-1)*\fpvar{step}}
{\draw[-,thick,blue] (#1,{#1*2})--({#1+\fpvar{step}},{#1*2});}
\end{tikzpicture}
\end{document}
```
Instead of `\foreach`, that doesn't really behave very accurately with floating point values, the `\fp_step_inline:nnnn` function is used. In the fourth argument, `#1` stands for the current value in the loop. The first argument is the starting point, the second one is the step and the third argument is the final point.
| 3 | https://tex.stackexchange.com/users/4427 | 686200 | 318,345 |
https://tex.stackexchange.com/questions/686191 | 3 | I like to set up a custom environment `tabularmatrix` such that I use it in the math mode as follows:
```
\[
\begin{tabularmatrix}
a & b & c \\
d & e & f \\
\end{tabularmatrix}
\]
```
My desired output from it should be as same as obtained from:
```
\[
\begin{tabular}{|c|c|c|}
\hline
$a$ & $b$ & $c$ \\
\hline
$d$ & $e$ & $f$ \\
\hline
\end{tabular}
\]
```
How should I optimally define the custom command `tabularmatrix`?
| https://tex.stackexchange.com/users/114006 | Custom environment to create table-like matrix | false | Not exactly a solution since it doesn't use your preferred name for the environment, but you can use `nicematrix`. You must compile twice.
```
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\[
\begin{NiceArray}{*{3}{c}}[hvlines]
a & b & c \\
d & e & f
\end{NiceArray}
\]
\end{document}
```
| 4 | https://tex.stackexchange.com/users/125871 | 686201 | 318,346 |
https://tex.stackexchange.com/questions/686202 | 1 | I am trying to write a .bat file for my Windows machine that removes page numbers and converts the pdf to a png file with `pdfcrop` and `pdftoppm`. The conversion part is not an issue; running latex from the .bat file is what I'm having trouble with. For example if I make a file `mycmd.bat` containing
```
pdflatex '\AtBeginDocument{\pagestyle{empty}}\input{%1}'
```
and run `mycmd bbb` on the file `bbb.tex`
```
\documentclass{article}
\begin{document}
some text
\end{document}
```
then in the terminal I get
```
C:\Users\<user>\Downloads> mycmd bbb
C:\Users\<user>\Downloads>pdflatex '\AtBeginDocument{\pagestyle{empty}}\input{bbb}'
pdflatex: security risk: running with elevated privileges
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=pdflatex.fmt)
restricted \write18 enabled.
entering extended mode
! I can't find file `''.
<to be read again>
\protect
<*> '\AtBeginDocument
{\pagestyle{empty}}\input{bbb}'
(Press Enter to retry, or Control-C to exit)
Please type another input file name:
```
But if I run the command `pdflatex '\AtBeginDocument{\pagestyle{empty}}\input{bbb}'` directly in the terminal then it works fine.
My only guess is that latex has an issue with the percent in `%1` from the .bat file. If this is the issue, how can I fix it? If not, what is going wrong?
| https://tex.stackexchange.com/users/208544 | running latex from .bat file fails | true | As @user202729 mentioned in the comments, you need to use double quotes around the entire argument of `pdflatex`:
```
pdflatex "\AtBeginDocument{\pagestyle{empty}}\input{%1}"
```
Probably Windows-specific.
| 1 | https://tex.stackexchange.com/users/208544 | 686203 | 318,347 |
https://tex.stackexchange.com/questions/21290 | 129 | I have a very long equation that must be separated into two lines, and it has several pairs of nesting `\left` `\right` delimiters. Unfortunately, it seems that they need to be on the same line in order for them to work.
Also I'm using the `align` environment because I need the aligning functionality. Is there a way to have the size of delimiters automatically adjusted over multiple lines?
| https://tex.stackexchange.com/users/5668 | How to make \left, \right pairs of delimiter work over multiple lines? | false | The previous "automated" solutions all use certain packages that have compatibility issues with `amsmath`. Here is a sort-of-automated solution that does not require additional packages.
This solution uses `\vphantom` and is in essence the same as the previous answers using this command.
```
% split \left and \right across two lines
% use only between \[ and \] (modify as needed for \begin{equation}\end{equation}, etc.)
\newcommand\MatchBrackets[2]{\left[#1\vphantom{#2}\right.\]\[\left.\vphantom{#1}#2\right]}
\newcommand\MatchParentheses[2]{\left(#1\vphantom{#2}\right.\]\[\left.\vphantom{#1}#2\right)}
```
Usage:
```
\[\nabla h=\MatchParentheses{\int_0^{e^5}e^{-z^2}dz+\frac12\cdot\cos\left(\frac12\cdot x\right)\cdot\cos(y),}{-\frac12\cdot\cos\left(\cos\left(\frac12\cdot y\right)\right)\cdot\sin\left(\frac12\cdot y\right)-\sin(x)\cdot\sin(y)}\]
```
(Idea taken from [Wintz's comment here](https://tex.stackexchange.com/questions/49890/linebreak-between-left-and-right#comment1472435_49895). Example modified from [zdim's answer here](https://stackoverflow.com/a/36669489).)
| 2 | https://tex.stackexchange.com/users/112411 | 686204 | 318,348 |
https://tex.stackexchange.com/questions/686206 | 2 | I want to define a command `\bigO` where if I type something like `\bigO[3]{\epsilon}` it gives `$\mathcal{O}(\epsilon^3)$`, and if I leave out the optional argument and have `\bigO{\epsilon}` it defaults to `$\mathcal{O}(\epsilon)$`.
Currently, I have something like this: `\newcommand{\bigO}[2][1]{\mathcal{O}(#2^#1)}`, which works if I want the default exponent, i.e. `1`, to appear explicitly. But what if I don't want `1` to appear in the exponent in the default case?
| https://tex.stackexchange.com/users/97684 | Adding optional argument (as exponent) to custom math expressions | true | You can use a flag value to represent “no value”. In this case, since it's for typesetting, it's pretty safe to use an empty default and test for that:
```
\newcommand\bigO[2][]%
{\mathcal{O}(#2\if\relax\detokenize{#1}\relax\else^{#1}\fi)}
$\bigO{\epsilon}$ and $\bigO[3]{\epsilon}$
```
Or you can use `\NewDocumentCommand`, and test if the optional argument was given using `\IfValueT`:
```
\NewDocumentCommand \bigOo { o m }
{\mathcal{O}(#2\IfValueT{#1}{^{#1}})}
$\bigOo{\epsilon}$ and $\bigOo[3]{\epsilon}$
```
Or if you want a more natural syntax, you can use the `e` argument type:
```
\NewDocumentCommand \bigOoh { m e^ }
{\mathcal{O}(#1\IfValueT{#2}{^{#2}})}
$\bigOoh{\epsilon}$ and $\bigOoh{\epsilon}^3$
```
Here's a document with all three versions:
```
\documentclass{article}
\begin{document}
\newcommand\bigO[2][]%
{\mathcal{O}(#2\if\relax\detokenize{#1}\relax\else^{#1}\fi)}
$\bigO{\epsilon}$ and $\bigO[3]{\epsilon}$
\NewDocumentCommand \bigOo { o m }
{\mathcal{O}(#2\IfValueT{#1}{^{#1}})}
$\bigOo{\epsilon}$ and $\bigOo[3]{\epsilon}$
\NewDocumentCommand \bigOoh { m e^ }
{\mathcal{O}(#1\IfValueT{#2}{^{#2}})}
$\bigOoh{\epsilon}$ and $\bigOoh{\epsilon}^3$
\end{document}
```
>
>
>
| 4 | https://tex.stackexchange.com/users/134574 | 686208 | 318,349 |
https://tex.stackexchange.com/questions/224047 | 5 | Because I have many equations in my document and most of them do not need to be referred to, I always use `\begin{align*}...\end{align*}`. For the times I do need an equation number I have written a command
```
\newcommand{\nr}{\addtocounter{equation}{1}\tag{\theequation}}
```
This works great, only cleveref does not sort it. An example
```
\documentclass{article}
\usepackage{amsmath,cleveref}
\newcommand{\nr}{\addtocounter{equation}{1}\tag{\theequation}}
\begin{document}
\begin{align*}
foo \nr\label{eq1}\\
bar \nr\label{eq2}
\end{align*}
\cref{eq2,eq1}
\end{document}
```
This outputs "eqs. (2) and (1)" instead of "eqs. (1) and (2)". Is there a way to fix this?
| https://tex.stackexchange.com/users/41001 | Cleveref does not sort self defined tags | false | Super late answer, but his seems to work well.
```
\documentclass{article}
\usepackage{amsmath}
% just make sure that cleveref is included last (even after hyperref if used)
\usepackage[capitalize]{cleveref}
\newcommand{\creflastconjunction}{,~and~}
\begin{document}
\begin{align}
x &= 1 \nonumber \\
x &= 2 \nonumber \\
x &= 3.14159 \label{eq:1}\\
y &= 4 \label{eq:2}
\end{align}
The first two equations are unnumbered (e.g., working out details) and \cref{eq:2,eq:1} are referenced correctly by cleveref.
Note that by default cleveref will sort the list.
Now, if you want to refer to equation 2 before equation 1 you must be explicit with cleveref, like \cref{eq:2} and \labelcref{eq:1}.
This sorting behavior can be changed globally with the option nosort.
\end{document}
```
| 0 | https://tex.stackexchange.com/users/31789 | 686209 | 318,350 |
https://tex.stackexchange.com/questions/686181 | 1 | I am trying to align vertically this 3 circuits. I would like to align the on top, instead of bottom part (they automatically align bottom with that code).
Also, if possible, to know how to align the at the same 'pole' height. Thank you.
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{tikz,circuitikz}
\usepackage[singlelinecheck=off]{caption}
\usepackage{float}
\begin{figure}[H]
\begin{minipage}{\textwidth}
\renewcommand{\arraystretch}{1.0}
\centering
\Large
\begin{tabular}{ccc}
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,3) to [R, l=$\mathbf{R_0}$,o-] (2,3) -- (2,4)
to [C, l=$\mathbf{Q_{1}}$] (6,4) -- (6,3)
to [short, -o] (7,3)
(2,3) -- (2,2) to [R, l=$\mathbf{R_1}$] (6,2) -- (6,3);
\end{circuitikz}
} &
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (8,5) -- (8,4)
to [short, -o] (9,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (8,3)
(4,2) -- (4,1) to [R, l=$R_2$] (8,1) -- (8,4);
\end{circuitikz}
} &
\scalebox{0.5}{
\begin{circuitikz}[]
\draw[]
(0,4) to [R, l=$R_0$,o-] (2,4) -- (2,5)
to [C, l=$Q_{1}$] (9,5) -- (9,4)
to [short, -o] (10,4)
(2,4) -- (2,2) to [R, l=$R_1$] (4,2) -- (4,3)
to [C, l=$Q_{2}$] (9,3)
(4,2) -- (4,0) to [R, l=$R_2$] (6,0) -- (6,1)
to [R, l=$R_3$] (9,1)
(6,0) -- (6,-1) to [C, l=$Q_{3}$] (9,-1) -- (9,4);
\end{circuitikz}
}\\
\small(a) Randles & \small(b) 2 TC & \small(b) 3 TC
\end{tabular}
\end{minipage}
\vspace{-3pt}
\captionsetup{labelfont=bf,labelsep=period,font=small}
\caption{description}
\label{fig:circuits}
\end{figure}
```
| https://tex.stackexchange.com/users/293308 | How can I align vertically/on top tikz pictures (circuitikz) in minipage/figure/tabular environment? | true | Another possibility is:
* for pictures define baseline: `baseline=(current bounding box.north)`
* use `tabularray` for table
* remove minipages
```
\documentclass{article}
%\usepackage{geometry}
\usepackage{circuitikz}
\usepackage[skip=1ex,
labelfont=bf,labelsep=period,font=small,
singlelinecheck=off]{caption, subcaption}
\usepackage{tabularray}
\begin{document}
\begin{figure}[ht]
\tikzset{
every picture/.append style = {baseline=(current bounding box.north),
scale=0.53, transform shape}
}
\ctikzset{
bipoles/capacitor/height=0.44,
bipoles/capacitor/width=0.1,
}
\begin{tblr}{colspec = {*{3}{Q[c]} },
colsep = 3pt,
row{2} = {font=\small, mode=math},
row{3} = {font=\small}
}
\begin{circuitikz}
\draw (0,3) to [R, l=$\mathbf{R_0}$,o-] ++ (2,0) coordinate (aux)
-- ++ (0, 1)
to [C, l=$\mathbf{Q_{1}}$] ++ (2,0) -- ++ (0,-1)
to [short, -o] ++ (1,0)
(aux) -- ++ (0,-1)
to [R, l=$\mathbf{R_1}$] ++ (2,0) -- ++ (0,1);
\end{circuitikz}
& \begin{circuitikz}
\draw (0,4) to [R, l=$\mathbf{R_0}$,o-] ++ (2,0) coordinate (a)
-- ++ (0, 1)
to [C, l=$Q_{1}$] ++ (4,0) -- ++ (0,-1)
to [short, -o] ++ (1,0)
(a) -- ++ (0,-1)
to [R, l=$R_1$] ++ (2,0) coordinate (b)
(b) -- ++ (0, 1)
to [C, l=$Q_{2}$] ++ (2,0)
(b) -- ++ (0,-1)
to [R, l=$R_2$] ++ (2,0) -- ++ (0,2);
\end{circuitikz}
& \begin{circuitikz}
\draw (0,5) to [R, l=$\mathbf{R_0}$,o-] ++ (2,0) coordinate (a)
-- ++ (0, 1)
to [C, l=$Q_{1}$] ++ (6,0) -- ++ (0,-1)
to [short, -o] ++ (1,0)
(a) -- ++ (0,-1)
to [R, l=$R_1$] ++ (2,0) coordinate (b)
(b) -- ++ (0, 1)
to [C, l=$Q_{2}$] ++ (4,0)
(b) -- ++ (0,-1)
to [R, l=$R_2$] ++ (2,0) coordinate (c)
(c) -- ++ (0, 1)
to [R, l=$R_3$] ++ (2,0)
(c) -- ++ (0,-1)
to [C, l=$Q_{3}$] ++ (2,0) -- ++ (0,3);
\end{circuitikz} \\
R(QR) & R(Q(R(QR))) & R(Q(R(Q(R(QR))))) \\
(a) Randles & (b) 2 TC & (c) 3 TC
\end{tblr}
\caption{Representación de los circuitos equivalentes modelados en este trabajo.}
\label{fig:circuitos}
\end{figure}
\end{document}
```
(red lines indicate page layout)
Note:
* You may consider to increase text block by use of the `geometry` package and accordingly enlarge image scale value (for example at `\usepackage[margin=25mm]{geometry}` to `scale=0.75`) and by this make scheme better readable:
* I took a liberty and redraw schemes with use of the relative coordinates. You may liked this way of drawing them.
| 1 | https://tex.stackexchange.com/users/18189 | 686213 | 318,351 |
https://tex.stackexchange.com/questions/686219 | 2 | I am following this [QnA](https://tex.stackexchange.com/questions/504036/using-mdframed-with-inputminted) to create a renewed `\inputminted` command.
```
\documentclass{article}
\usepackage{minted} % code highlighting, uses python pygments
\usepackage{mdframed}
\usepackage{xcolor}
\definecolor{codebg}{rgb}{0.95,0.95,0.95}
\let\inputmintedorig\inputminted % copy original command [pack:minted]\inputminted to \inputmintedorig
\renewcommand{\inputminted}[3][]{% % change original \inputminted
\begin{mdframed}%
\inputmintedorig[#1]{#2}{#3}%
\end{mdframed}%
}
\begin{document}
\inputminted[bgcolor=codebg,mathescape,linenos,numbersep=5pt,gobble=2,frame=none,framesep=2mm,label=Some Code]{py}{pycode.py}
\end{document}
```
where pycode.py contains some arbitray Python code:
```
import numpy as np # importing library
ls = np.arange(0, 100, 1)
```
But I am getting error "Too deeply nested. ...framesep=2mm,label=Some Code]{py}{pycode.py}" when using the renewed command. What am I doing wrong?
| https://tex.stackexchange.com/users/264077 | 'Too deeply nested' error in `\renewcommand` | false | #### do-it-yourself-way (may be broken if LaTeX kernel change)
```
\documentclass{article}
\usepackage{minted}
\usepackage{mdframed}
\makeatletter
\expandafter\let\expandafter\inputmintedorig@internal
\csname\string\inputminted\endcsname
\renewcommand{\inputminted}[3][]{%
\begin{mdframed}%
\inputmintedorig@internal[#1]{#2}{#3}%
\end{mdframed}%
}
\makeatother
\begin{document}
\inputminted{py}{test.py}
\end{document}
```
But not to be advised, as this may be broken if LaTeX kernel internals change.
By the way doesn't minted documentation explain how to use a "framing" package of one's choice (untested).
#### use-devoted-package-way
```
\documentclass{article}
\usepackage{minted}
\usepackage{mdframed}
\usepackage{letltxmacro}
\LetLtxMacro{\inputmintedorig}{\inputminted}
\renewcommand{\inputminted}[3][]{%
\begin{mdframed}%
\inputmintedorig[#1]{#2}{#3}%
\end{mdframed}%
}
\begin{document}
\inputminted{py}{test.py}
\end{document}
```
The package [letltxmacro](https://ctan.org/pkg/letltxmacro) was created for such tasks.
##### use-modern-LaTeX-way
copied from [egreg answer](https://tex.stackexchange.com/a/686225/293669):
```
\NewCommandCopy{\inputmintedorig}{\inputminted}
```
| 2 | https://tex.stackexchange.com/users/293669 | 686221 | 318,357 |
https://tex.stackexchange.com/questions/686219 | 2 | I am following this [QnA](https://tex.stackexchange.com/questions/504036/using-mdframed-with-inputminted) to create a renewed `\inputminted` command.
```
\documentclass{article}
\usepackage{minted} % code highlighting, uses python pygments
\usepackage{mdframed}
\usepackage{xcolor}
\definecolor{codebg}{rgb}{0.95,0.95,0.95}
\let\inputmintedorig\inputminted % copy original command [pack:minted]\inputminted to \inputmintedorig
\renewcommand{\inputminted}[3][]{% % change original \inputminted
\begin{mdframed}%
\inputmintedorig[#1]{#2}{#3}%
\end{mdframed}%
}
\begin{document}
\inputminted[bgcolor=codebg,mathescape,linenos,numbersep=5pt,gobble=2,frame=none,framesep=2mm,label=Some Code]{py}{pycode.py}
\end{document}
```
where pycode.py contains some arbitray Python code:
```
import numpy as np # importing library
ls = np.arange(0, 100, 1)
```
But I am getting error "Too deeply nested. ...framesep=2mm,label=Some Code]{py}{pycode.py}" when using the renewed command. What am I doing wrong?
| https://tex.stackexchange.com/users/264077 | 'Too deeply nested' error in `\renewcommand` | true | This is a well-known problem with `\let`.
When you ask for `\show\inputminted` you'll be told that
```
> \inputminted=macro:
->\@protected@testopt \inputminted \\inputminted {}.
```
The macro doing the real job is `\\inputminted` (where the second backslash is part of the name. In general, when you have something like
```
\newcommand{\foo}[2][default]{something with #1 and #2}
```
LaTeX will internally do something like
```
\def\foo{\protected@testopt\foo\\foo{default}}
\def\\foo[#1]#2{something with #1 and #2}
```
but you're not supposed to know it as a user. (Note: I ***know*** that the code above isn't what actually LaTeX does, but the details are completely unimportant.)
But you're trying to access internals in order to redefine `\inputminted`. I believe it's not a good idea, actually. Anyway, when you want to do this you must be aware of the subtleties involved.
With your `\let`, you're not accessing the *real* macro that does the job. Worse, the subsequent `\renewcommand` will *clobber* the meaning of `\\inputminted`, so you enter an infinite loop as soon as you use `\inputmintedorig`.
Until 2021, the correct way to proceed was to load `\usepackage{letltxmacro}` and say
```
\LetLtxMacro{\inputmintedorig}{\inputminted}
```
but now there's a method from the LaTeX kernel itself:
```
\NewCommandCopy{\inputmintedorig}{\inputminted}
```
| 6 | https://tex.stackexchange.com/users/4427 | 686225 | 318,361 |
https://tex.stackexchange.com/questions/686191 | 3 | I like to set up a custom environment `tabularmatrix` such that I use it in the math mode as follows:
```
\[
\begin{tabularmatrix}
a & b & c \\
d & e & f \\
\end{tabularmatrix}
\]
```
My desired output from it should be as same as obtained from:
```
\[
\begin{tabular}{|c|c|c|}
\hline
$a$ & $b$ & $c$ \\
\hline
$d$ & $e$ & $f$ \\
\hline
\end{tabular}
\]
```
How should I optimally define the custom command `tabularmatrix`?
| https://tex.stackexchange.com/users/114006 | Custom environment to create table-like matrix | false | Quite simple with `tabularray`:
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{tabularray}
\NewDocumentEnvironment{tabularmatrix}{+b}{
\begin{tblr}{
hlines, vlines, columns={c},
rowsep=0.1pt, colsep=5pt,
}
#1
\end{tblr}
}{}
\begin{document}
\[
\begin{tabularmatrix}
a & b & c \\
d & e & f \\
\end{tabularmatrix}
\quad
\begin{tabularmatrix}
it & works & with & any \\
number & of & rows & or \\
columns & a & b & c \\
d & e & f & g
\end{tabularmatrix}
\]
\end{document}
```
| 5 | https://tex.stackexchange.com/users/101651 | 686232 | 318,362 |
https://tex.stackexchange.com/questions/686234 | 1 | I have some options to typeset
a command line option
with a comment inside
```
\verb|-interaction=nonstopmode -recorder -s prologues=2 -s outputtemplate="%j.mps"|
```
Because I need in many places
(in fact there are other reasons),
I use a command instead:
```
\newcommand{\metapostOptions}{\verb|-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="%j.mps"|}
```
There is a reason, complicated to explain, which prevents me from just escaping the percent like so: `\%`; in fact the text in the command is generated.
I can define the command only if i include this in change of catcode.
```
\catcode`\%=12
\newcommand{\metapostOptions}{\verb|-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="%j.mps"|}
\catcode`\%=14
```
Still I cannot use, because then
```
(./test.out) (./test-1.cpt
! LaTeX Error: \verb ended by end of line.
```
I really don't understand what happens and cannot help myself.
Help very much appreciated.
| https://tex.stackexchange.com/users/60463 | \verb in command does not work | false | You can not use `\verb` in the argument of a command.
Use
```
\newcommand{\metapostOptions}{%
\textt{-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="\%j.mps"}}
```
| 2 | https://tex.stackexchange.com/users/1090 | 686236 | 318,363 |
https://tex.stackexchange.com/questions/686227 | 0 | Is it possible to create an environment that contains `shownto` environment from `multiaudience` package?
With the following MWE I got the error `! LaTeX Error: \begin{shownto} on input line 26 ended by \end{cmcomment}.`
```
\documentclass{book}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{multiaudience}
\SetNewAudience{others}
\SetNewAudience{onlyme}
\DefCurrentAudience{onlyme}
\newenvironment{cmcomment}{%
\begin{shownto}{onlyme}\textcolor{gray}\small\singlespacing%
}{\end{shownto}}
\usepackage{mwe}
\begin{document}
\doublespacing
Everyone read this \blindtext
\begin{cmcomment}
I read this \blindtext
\end{cmcomment}
\end{document}
```
| https://tex.stackexchange.com/users/101651 | How to create an environment that contains shownto from multiaudience package? | true | Instead of using `\newenvironment` you could use `\NewDocumentEnvironment` with the `b`-type argument:
```
\documentclass{book}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{multiaudience}
\SetNewAudience{others}
\SetNewAudience{onlyme}
\DefCurrentAudience{onlyme}
\NewDocumentEnvironment{cmcomment}{+b}
{%
\begin{shownto}{onlyme}%
\color{gray}\small
\singlespacing%
#1\par%
\end{shownto}%
}
{}
\NewDocumentEnvironment{otcomment}{+b}
{%
\begin{shownto}{others}%
\color{gray}\small
\singlespacing
#1\par
\end{shownto}%
}
{}
\usepackage{mwe}
\begin{document}
\doublespacing
Everyone read this \blindtext
\begin{cmcomment}
I read this \blindtext
\end{cmcomment}
Everyone read this \blindtext
\begin{otcomment}
Others read this \blindtext
\end{otcomment}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/117050 | 686237 | 318,364 |
https://tex.stackexchange.com/questions/362082 | 8 | I have a LaTeX root file that refers to many other single files. Those files are included/referenced by
```
\input{somefolder/somefile}
```
But somehow [Pandoc](http://pandoc.org/index.html) is generating the output just from the main tex file (the entry point) and does not follow the inputs. What am I doing wrong?
>
> pandoc main.tex -t docx -o main.docx
>
>
>
**Remark:** I'm trying to import the LaTeX to Adobe Indesign by converting it to Docx first and then to Indesign.
**Update:** I created a [minimum working example](https://www.file-upload.net/download-12430065/latex.zip.html). Seems that the input file are correctly referenced but still I get tons of other errors that seem to be related to the corporate layout that uses Tkiz drawings. The Pandoc version is 1.19.2.1 on MacOS 10.12.4 (Sierra). The Pandoc command is:
>
> pandoc booklet2016.tex -t docx -o booklet2016.docx
>
>
>
| https://tex.stackexchange.com/users/65330 | Pandoc: does not include input files | false | I had the same problem with including a file with tons of latex macros. I had the LaTeX include directive **`\include{macros}`** in the header, **before `\begin{document}`**. The problem could be easily **solved by moving it into the body**:
```
\begin{document}
\include{macros}
...
\end{document}
```
| 0 | https://tex.stackexchange.com/users/97306 | 686239 | 318,365 |
https://tex.stackexchange.com/questions/686231 | 0 | I am in a habit of defining a standard collection of CTAN packages in an .sty file and call that file in all documents with a `\usepackage{MyUseCTANPackages}` statement in the preamble of a document. On occasion, rather than voiding MyUseCTANPackages.sty, I would like to override a package defined there, in this instance the `geometry` package to define different margins, which however leads to `! LaTeX Error: Option clash for package geometry`. Is there a way to override what was said in the package definitions in MyUseCTANPackages.sty for `geometry`, and similarly also for other packages?
MyUseCTANPackages.sty contains, amongst a large collection of other packages,
```
...
\usepackage[a4paper, vmargin=2.0cm, outer=1.5cm, inner=1.5cm,marginparwidth=2.0cm, marginparsep=0.5cm]{geometry}
...
```
```
\documentclass{article}
% RN. 20 May 2023
% BRIEF DESCRIPTION:
% overriding package definitions in package geometry.
%=======================
\usepackage{MyUseCTANPackages}
% attempting to override the definition contained in MyUseCTANPackages.sty:
%\usepackage[a4paper, vmargin=2.0cm, outer=0.5cm, inner=1.5cm]{geometry}
\begin{document}
sdf asgadf gadf g DGRFe rg ERG edg RSG drg G edgRGedtg G gE TG etrgERGetr gERGer g ERGe rgERG erg ERG erg RG g G rg ERG rg RG reg RG
\end{document}
```
| https://tex.stackexchange.com/users/11837 | Overriding definitions in package ```geometry``` while avoiding option clashes | true | You can load geometry this way inside your MyUseCTANPackages
```
\ifdefined\MyGeometryOptions
\expandafter\usepackage\MyGeometryOptions{geometry}
\else
\usepackage[a4paper, vmargin=2.0cm, outer=1.5cm, inner=1.5cm,marginparwidth=2.0cm, marginparsep=0.5cm]{geometry}
\fi
```
and then do
```
\def\MyGeometryOptions{[a4paper, vmargin=2.0cm, outer=0.5cm, inner=1.5cm]}
\usepackage{MyUseCTANPackages}
```
if desired.
The rationale here is in case the order of loading with respect to other packages matters (which probably it doesn't much, but with `hyperref` for example in place of `geometry` it would often).
| 1 | https://tex.stackexchange.com/users/293669 | 686241 | 318,366 |
https://tex.stackexchange.com/questions/686246 | 11 | How can I create enumerated lists, but without breaking flow if we split it by another article/section/chapter?
Example output I want to achieve:
```
# Article I
## Section 1 - something
1. something
2. something
## Section 2 - something
3. something
4. something
## Section 3 - something
5 something
6. something
# Article II
## Section 1 - something
7. something
8. something
## Section 2 - something
9. something
10. something
## Section 3 - something
11. something
12. something
```
Currently I got an idea as below, but it's far from what I'd like to achieve, because for maintenance I'd also have to manually properly count and the list of elements isn't continuous.
```
\begin{document}
\section*{Article I}
\section{Section 1 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 2 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 3 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section*{Article II}
\section{Section 1 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 2 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 3 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/286163 | How do we create a "continuous" list enumeration in LaTeX? | false | I suggest you (a) load the `enumitem` package in preamble and (b) change all but the first instance of `\begin{enumerate}` to `\begin{enumerate}[resume]`.
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section*{Article I}
\section{Section 1---something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 2---something}
\begin{enumerate}[resume]
\item something
\item something
\end{enumerate}
\section{Section 3---something}
\begin{enumerate}[resume]
\item something
\item something
\end{enumerate}
\section*{Article II}
\section{Section 1---something}
\begin{enumerate}[resume]
\item something
\item something
\end{enumerate}
\section{Section 2---something}
\begin{enumerate}[resume]
\item something
\item something
\end{enumerate}
\section{Section 3---something}
\begin{enumerate}[resume]
\item something
\item something
\end{enumerate}
\end{document}
```
| 12 | https://tex.stackexchange.com/users/5001 | 686247 | 318,369 |
https://tex.stackexchange.com/questions/686246 | 11 | How can I create enumerated lists, but without breaking flow if we split it by another article/section/chapter?
Example output I want to achieve:
```
# Article I
## Section 1 - something
1. something
2. something
## Section 2 - something
3. something
4. something
## Section 3 - something
5 something
6. something
# Article II
## Section 1 - something
7. something
8. something
## Section 2 - something
9. something
10. something
## Section 3 - something
11. something
12. something
```
Currently I got an idea as below, but it's far from what I'd like to achieve, because for maintenance I'd also have to manually properly count and the list of elements isn't continuous.
```
\begin{document}
\section*{Article I}
\section{Section 1 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 2 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 3 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section*{Article II}
\section{Section 1 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 2 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\section{Section 3 - something}
\begin{enumerate}
\item something
\item something
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/286163 | How do we create a "continuous" list enumeration in LaTeX? | true | I suggest defining your own environment, so you can tailor it to your needs. Adding the `resume` option is the key.
```
\documentclass{article}
\usepackage{enumitem}
\newlist{points}{enumerate}{1}
\setlist[points]{label=\arabic*.,resume}
\begin{document}
\section*{Article I}
\section{Section 1 - something}
\begin{points}
\item something
\item something
\end{points}
\section{Section 2 - something}
\begin{points}
\item something
\item something
\end{points}
\section{Section 3 - something}
\begin{points}
\item something
\item something
\end{points}
\section*{Article II}
\section{Section 1 - something}
\begin{points}
\item something
\item something
\end{points}
\section{Section 2 - something}
\begin{points}
\item something
\item something
\end{points}
\section{Section 3 - something}
\begin{points}
\item something
\item something
\end{points}
\end{document}
```
| 24 | https://tex.stackexchange.com/users/4427 | 686249 | 318,370 |
https://tex.stackexchange.com/questions/686226 | 0 | **Context:** I'm trying to write a package that will redefine various (Xe)LaTeX macros to facilitate automatically copying text from the rendered PDF document and pasting it, with minimal modifications, in a plain text document for inclusion/versioning in a git repo. I've tried for years to use `pandoc` et al. but that won't fit the bill because I rely heavily on `biber`+`biblatex`. It turns out that copying and pasting from macOS Preview works surprisingly well once you change the fonts to something “dumb” with no ligatures and change page dimensions to use an absurdly large width.
My problem is with (numbered) equations. I'd like to redefine the `equation` environment in some way so that instead of rendering math it displays the source code instead, using something like `\verb`/`verbatim`. Ideally, that would not require modifying the original source code in any way (the redefinition should happen in a package, so that the source code still uses normal `\begin{equation}...\end{equation}`)
**Update:**
I tried this:
```
\let\oldequation\equation
\let\endoldequation\endequation
\renewenvironment{equation}{%
\begin{oldequation}%
\begin{verbatim}%
}{%
\end{verbatim}%
\end{oldequation}%
}
```
But I'm getting the following error:
```
./manuscript.tex:414: Missing $ inserted.
<inserted text>
$
l.414 \begin{equation}
```
Not sure how to address this? My knowledge of the underlying TeX is minimal.
| https://tex.stackexchange.com/users/18050 | Redefine equation environment to render verbatim source instead of maths | true | The code below works well enough for my purpose. It starts by detokenizing the contents of the equation to display it in plain text in a reproducible manner and then creates a numbered equation containing the original contents, hidden away in a virtual box.
```
\usepackage{environ}
\let\oldequation\equation
\let\endoldequation\endequation
\NewEnviron{newequation}{%
\noindent%
-- BEGIN EQUATION --\\%
\detokenize\expandafter{\BODY}\\%
-- END EQUATION --%
\begin{oldequation}%
\setbox0\vbox{\ensuremath{\BODY}}%
\end{oldequation}%
}
\let\equation\newequation
\let\endequation\endnewequation
```
| 0 | https://tex.stackexchange.com/users/18050 | 686255 | 318,373 |
https://tex.stackexchange.com/questions/686205 | 2 | Here is an example:
```
\documentclass[10pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
% modern themes
\moderncvstyle{banking} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
% character encoding
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\usepackage{import}
\nopagenumbers{}
% personal data
\name{John}{Doe}
\phone[mobile]{+1 (111) 111-1111}
\email{email@gmail.com}
\social{https://www.linkedin.com/in/username/}
\homepage{website.github.io}
\pagenumbering{gobble}
\newcommand{\RN}[1]{%
\textup{\uppercase\expandafter{\romannumeral#1}}%
}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
\vspace{-3em}
\section{Education}
\vspace{5pt}
\begin{itemize}
\item[]{\cventry{expected June 2025}{Major 1: Computer Science, Minor: Mathematics}{University}{Location, XX}{GPA: 3.95, Dean's Honors List}{\vskip 3pt \footnotesize \textbf{Relevant Courses Completed:} Operating Systems, Data Structures \& OOP, Linear Algebra \RN{1} \& \RN{2}, Discrete Mathematics, \\ Computer Architecture, Software Construction, Single \& Multi-Variable Calculus, Logic Design of Digital Circuits, \\ Computer Organization, Differential Equations, Microeconomic Theory, Symbolic Logic}{\vskip 3pt \footnotesize \textbf{Relevant Courses Completed by Summer 2025:} Algorithms and Complexity, Programming Languages, Computer Networking, \\ Real Analysis, Abstract Algebra, Digital Circuit Design \& Implementation, Compiler Construction, Probability Theory, Computer Security }
}
\end{itemize}
\end{document}
```
My question is very simple: Why is the second (vertical) spacing of 'Courses Completed by 2025' different than that of 'Courses Completed', how do I fix this, and what is the proper way to format it?
| https://tex.stackexchange.com/users/295684 | Different spacing in \cventry | true | To solve the problem, put the full "description" (two parts) in the sixth parameter of `\cventry`
You are now using a seventh parameter for the second part, which has a different format.
```
\documentclass[10pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
% modern themes
\moderncvstyle{banking} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
% character encoding
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\usepackage{import}
\nopagenumbers{}
% personal data
\name{John}{Doe}
\phone[mobile]{+1 (111) 111-1111}
\email{email@gmail.com}
\social{https://www.linkedin.com/in/username/}
\homepage{website.github.io}
\pagenumbering{gobble}
\newcommand{\RN}[1]{%
\textup{\uppercase\expandafter{\romannumeral#1}}%
}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
\vspace{-3em}
\section{Education}
\vspace{5pt}
\begin{itemize}
\item[]\cventry{expected June 2025}{Major 1: Computer Science, Minor: Mathematics}{University}{Location, XX}{GPA: 3.95, Dean's Honors List}
{\vskip 3pt \footnotesize% sixth parameter <<<<<<<
\textbf{Relevant Courses Completed:} Operating Systems, Data Structures \& OOP, Linear Algebra \RN{1} \& \RN{2}, Discrete Mathematics, \\ Computer Architecture, Software Construction, Single \& Multi-Variable Calculus, Logic Design of Digital Circuits, \\ Computer Organization, Differential Equations, Microeconomic Theory, Symbolic Logic.
\vskip 3pt
\textbf{Relevant Courses Completed by Summer 2025:} Algorithms and Complexity, Programming Languages, Computer Networking, \\ Real Analysis, Abstract Algebra, Digital Circuit Design \& Implementation, Compiler Construction, Probability Theory, Computer Security.
}
\end{itemize}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/161015 | 686256 | 318,374 |
https://tex.stackexchange.com/questions/686235 | 3 | I am trying to use and .adr file to store the addresses for letters.
I found the very powerful answer here:
[Using an adr-file, how to change format of the address?](https://tex.stackexchange.com/questions/98896/using-an-adr-file-how-to-change-format-of-the-address/98935#98935)
It works great and I was even able to adapt it to my usecase:
```
\documentclass{scrlttr2}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{xpatch}
%%% Patch the relevant scrlttr macros
\makeatletter
% at the end of \begin{letter}{<name>} store the <name>
\xapptocmd\letter{\gdef\this@letter@to{#2}}{}{}
% this seems complicated, but is needed to strip off
% the backslash from the argument to `\begin{letter}`
% Don't use `\makeopening` if the argument to `\begin{letter}`
% is not obtained via the `.adr` file
% we need to get \opening@MEIER from the fact that
% \this@letter@to expands to \MEIER so we first expand
% \this@letter@to, then \string, so that \@gobble will
% remove the backslash
\newcommand\makeopening{%
\@nameuse{%
opening@%
\expandafter\expandafter\expandafter
\@gobble\expandafter\string\this@letter@to}}
% modify \addrentry to define an opening and
% the address lines as desired
\renewcommand\addrentry[9]{%
\def\@tempa{#1}%
\ifx\@tempa\@empty
\else
\@namedef{opening@#9}{\opening{#5}}% % define opening phrase
\@namedef{#9}{#2 #1\\#3}% % re-define the address field (because of renewcommand)
\fi
}
\makeatother
% global koma vars
\setkomavar{fromname}{Max Myname}
\setkomavar{backaddress}{Max Myname, Some Street 12, 012345 Somewhere}
\setkomavar{fromaddress}{Some Street 12\\012345 Somewhere}
\begin{document}
\setkomavar{subject}{The subject}
\setkomavar{date}{\today}
\setkomavar{place}{Dresden}
\input{test_adressen.adr}
\begin{letter}{\MaxMustermann}
\makeopening
\lipsum[7]
\closing{Sincerely yours}
\end{letter}
\begin{letter}{\MariaMustermann}
\makeopening
\lipsum[7]
\closing{Sincerely yours}
\end{letter}
\end{document}
```
With test\_addressen.adr being:
```
\addrentry{Mustermann}
{Max}
{\bigskip Musterstraße 12\\12345 Musterstadt}
{(1234)~1~23~45~67}
{Guten Tag Herr Mustermann,}
{frei2}
{frei3}
{default selection for address}
{MaxMustermann}
\addrentry{Mustermann}
{Maria}
{\bigskip Musterstraße 12\\12345 Musterstadt}
{(1234)~1~23~45~67}
{Sehr geehrte Frau Mustermann,}
{frei2}
{frei3}
{default selection for address}
{MariaMustermann}
```
I would like to use it in my setup, however, because of the `\usepackage` I cannot use it in an .lco file. Is there a possibility to implement this without `xparse` and / or with `expl3` which I now understand more than the low level latex2e commands like `\this@letter@to` which are still a mystery to me?
| https://tex.stackexchange.com/users/281557 | adrentry modifications with expl3? | true | You can do it without `xpatch`.
```
\documentclass{scrlttr2}
\usepackage{lipsum}
\ExplSyntaxOn
% at the end of \begin{letter}{<name>} store the <name>, which is #2,
% but without the backslash
\NewCommandCopy{\originalletter}\letter
\RenewDocumentCommand{\letter}{O{}m}
{
\originalletter[#1]{#2}
\tl_gset:Nx \g_mrcarnivore_name_tl { \cs_to_str:N #2 }
}
\tl_new:N \g_mrcarnivore_name_tl
% Don't use `\makeopening` if the argument to `\begin{letter}`
% is not obtained via the `.adr` file
\NewDocumentCommand{\makeopening}{}
{
\use:c { opening@ \tl_use:N \g_mrcarnivore_name_tl }
}
% modify \addrentry to define an opening and
% the address lines as desired
\renewcommand\addrentry[9]
{
\tl_if_blank:nF { #1 }
{
\cs_set:cpn {opening@#9}{\opening{#5}} % define opening phrase
\cs_set:cpn {#9}{#2~#1\\#3} % re-define the address field
}
}
\ExplSyntaxOff
% global koma vars
\setkomavar{fromname}{Max Myname}
\setkomavar{backaddress}{Max Myname, Some Street 12, 012345 Somewhere}
\setkomavar{fromaddress}{Some Street 12\\012345 Somewhere}
\begin{document}
\setkomavar{subject}{The subject}
\setkomavar{date}{\today}
\setkomavar{place}{Dresden}
\input{test_adressen.adr}
% first letter
\begin{letter}{\MaxMustermann}
\makeopening
\lipsum[7]
\closing{Sincerely yours}
\end{letter}
% second letter
\begin{letter}{\MariaMustermann}
\makeopening
\lipsum[7]
\closing{Sincerely yours}
\end{letter}
\end{document}
```
| 4 | https://tex.stackexchange.com/users/4427 | 686260 | 318,376 |
https://tex.stackexchange.com/questions/686187 | 2 | When trying to make a sequence of graphs of step functions, I wrote the following code snippet:
```
\begin{tikzpicture}
\pgfmathsetmacro{\n}{2^3};
\pgfmathsetmacro{\step}{1/\n};
\foreach \i in {0,\step,...,(\n-1)*\step}
{\draw[-,thick,blue] (\i,{\i*2})--({\i+\step},{\i*2});}
\end{tikzpicture}
```
The idea is that I would like to define variables `\n` and `\step` such that all I have to do is adjust the value `\n` is set to, and then it will draw a step function in that many equal-sized pieces, blahblahblah. I will use this to make many different pictures within the same document.
However, it seems that defining variables in this way is not legal -- at least, I think so, since when I write this without variables it seems to work fine.
Is there a way to define variables "globally" within a `tikzpicture` environment?
---
It suddenly occurs to me ... could I just do the following?
```
\begin{tikzpicture}
\foreach \n in {2^3} {
\foreach \step in {1/n} {
\foreach \i in {0,\step,...,(\n-1)*\step}
{\draw[-,thick,blue] (\i,{\i*2})--({\i+\step},{\i*2});}
}}
\end{tikzpicture}
```
Even if it works, it sure seems like a fragile hack ... and I would guess there is some reason why I've never seen anyone suggest doing this ... although I can't actually name a reason why it should be bad.
Is there a reason why this wouldn't work or is bad?
---
Update: Tested it out, doesn't quite work although doesn't utterly break, but still trying to understand why it's doing what it's doing.
| https://tex.stackexchange.com/users/62274 | Illegal unit, and missing number when trying to define variables | true | The `\foreach` loop doesn't evaluate any of its list's entries on its own. And after the `...` syntax it needs to “see” a valid number.
In this case, you can use `parse = true` to force PGFFor to evaluate the last entry in its list.
In the second case, I'm using the `use float` key from the `ext.misc` library of my `tikz-ext` package. Please note that it is used after the variable is declared and has no `in <list>` part! This key will evaluate all entries for you.
In the third and fourth case, I'm using integer steps and just scale the drawing or the *xyz* coordinate system accordingly. This allows us to avoid any floating number inaccuracies that might creep in. (Though, they don't in the examples I'm using below.)
In the fifth case, I'm using a plot which does all the math for us.
Of course, this is only a valid solution in this example.
Code
----
```
\documentclass[tikz]{standalone}
\usetikzlibrary{ext.misc}
\makeatletter
\tikzset{scale xyz/.code=\pgfmathparse{#1}%
\pgf@xx\pgfmathresult\pgf@xx \pgf@xy\pgfmathresult\pgf@xy
\pgf@yx\pgfmathresult\pgf@yx \pgf@yy\pgfmathresult\pgf@yy
\pgf@zx\pgfmathresult\pgf@zx \pgf@zy\pgfmathresult\pgf@zy}
\makeatother
\newcommand*\myRow[1]{
\node[right] at (0,1) {$n = \pgfmathprint{int(#1)}$};
\pgfmatrixnextcell
% Case 1: everything the same but parse the last entry
\pgfmathsetmacro{\n}{#1}
\pgfmathsetmacro{\step}{1/\n}
\foreach[parse=true] \i in {0, \step, ..., (\n-1)*\step}
\draw (\i,\i*2) -- +(right:\step);
\pgfmatrixnextcell
% Case 2: use float = <start> to <end> step <step>
\foreach \i[use float = 0 to (#1-1)/#1 step 1/#1]
\draw (\i,\i*2) -- +(right:1/#1);
\pgfmatrixnextcell
% Case 3: use integer steps (and parsing the last entry)
% and divide by #1 when drawing
\foreach[parse=true] \i in {0,...,#1-1}
\draw (\i/#1,2*\i/#1) -- +(right:1/#1);
\pgfmatrixnextcell
% Case 4: scale xyz coordinate system by 1/#1
% and use integer steps
\tikzset{scale xyz = 1/#1}% i.e. scale = 1/8
\foreach[parse=true] \i in {0,...,#1-1}
\draw (\i,2*\i) -- +(right:1);
\pgfmatrixnextcell
% Case 5: Maybe a plot?
\draw[scale xyz=1/#1] plot[jump mark left, domain=0:#1, samples=#1+1] (\x,2*\x);
\pgfmatrixendrow}
\begin{document}
\tikz[
row sep=5mm, column sep=5mm, thick, blue,
every cell/.style 2 args={
style/.expand twice={\ifnum#2>1 \ifnum#1>1
execute at begin cell={\draw[help lines] (0,0) grid (1,2);}\fi\fi}}]
\matrix[row 5/.style=thin, row 1/.style={shift=(right:.5)}]{
&\node{Case 1}; &\node{Case 2}; &\node{Case 3}; &\node{Case 4}; &\node{Case 5};\\
\myRow{2^3} \myRow{3^3} \myRow{5} \myRow{35} \myRow{73}};
\end{document}
```
Output
------
| 2 | https://tex.stackexchange.com/users/16595 | 686261 | 318,377 |
https://tex.stackexchange.com/questions/686194 | 1 | Certain APS journals require to cite references that are used in the supplement, but not in the main text, in the following way:
```
@misc{suppl,
howpublished={See Supplemental Material at XXXX, which includes Refs. [xx-yy].}
}
```
That is, they should be included as new references in a reference description. Here, xx should be the number of the last reference of the main text + 1 and yy depends on how many new references there are in the supplement.
**Is there any way to do this using the \cite-command?**
I use revtex4-2 with the corresponding reference packages. I actually got this working simply by using \cite{...} entry of the .bib file as usual. However, I now cannot seem to reproduce the behavior I got initially. I suspect that things depend on the compilation order here, but I am not sure how. I can also not find anything on the topic in the revtex guide, but I may have missed something.
| https://tex.stackexchange.com/users/96546 | How to cite articles in a reference? | false | ### Manual manipulation of the bibliography
REVtex seems to use bibtex - supposedly, you do so, too. This will create a bbl file containing plain LaTeX, that can be directly used in a document, and has the structure
```
\begin{thebibliography}{1}
...
\bibitem{suppl}
See Supplemental Material at XXXX, which includes Refs. [xx-yy].
...
\end{thebibliography}
```
(given you have citet the supplementary references in your paper, or included it via `nocite`).
When you are done with your manuscript, you can (1) save the bbl file under a new name `mybbl.tex`, (2) comment `\bibliography{...}` out and (3) include the references by `\input{mybbl}` at the end of your paper.
You can then always manually rearrange the sequence of bibitems in the bibliography, including the reference to supplement references.
### Change numbering of references in the supplement
To change the starting number of the references (for the supplement xx), see the brilliant hack here:
[Change bibliography starting number](https://tex.stackexchange.com/questions/114420/change-bibliography-starting-number). Actually, it is even easier: insert `\setcounter{enumiv}{xx}` after `\begin{thebibliography}[1]`.
This will start reference numbers at xx+1.
| 1 | https://tex.stackexchange.com/users/97306 | 686263 | 318,378 |
https://tex.stackexchange.com/questions/686002 | 1 | I just started using kile to work with latex and I'm having an odd problem. While typing, I might pause to think, and if there is whitespace behind the cursor, kile will automatically perform a backspace whenever I stop typing. It is pretty frustrating to see all the typing errors this causes.
At first I thought it might be something my OS was doing (Manjaro KDE), but the behavior only happens while using kile.
If this is a feature, I can't find out how to turn it off. I've looked through the kile configuration menus and tried disabling many options that could be related, but no success.
Also, I am using kile in Vi mode with live preview enabled if that helps.
| https://tex.stackexchange.com/users/297215 | kile auto-backspace while typing | false | For anyone who might have this problem. It is caused by a setting in "Settings -> Configure Kile -> Live Preview"
By default, live preview will only compile documents after saving.
What causes this behavior is when you enable "Compile documents whenever there are changes after" By default it's set to 500ms. I enabled this behavior so every time I stop typing, the document will recompile. The issue with this is that when it compiles, the cursor position is returned to the last non-whitespace character on the current line. If you typically end your thoughts with a space after the last word (like I do), it will appear to do a backspace every time you stop typing.
Fix: Make sure "Compile documents after saving" is enabled instead.
| 0 | https://tex.stackexchange.com/users/297215 | 686266 | 318,379 |
https://tex.stackexchange.com/questions/114420 | 16 | I am currently using the usual field `\begin{thebibliography}` for my references at the end of my scientific papers.
The numbers of the citations go from `[1]` to `[19]`, as usual.
I would like to change this. I would like that the starting number were `[9]`, to `[27]`, for the citations.
How could I do?
| https://tex.stackexchange.com/users/10673 | Change bibliography starting number | false | (Sorry for posting this as an answer, but I don't have enough karma to comment)
In addition to Nirmal's answer: You need to redefine `thebibliography` only when you use BiBTeX. Otherwise, you can just add the line `\setcounter{enumiv}{8}` under `\begin{thebibliography}[..]`.
| 0 | https://tex.stackexchange.com/users/97306 | 686267 | 318,380 |
https://tex.stackexchange.com/questions/686265 | 1 | The answer to this question is gonna to be very short:
what is the proper command to format the names of big mathematical theories like **ZFC/PA/RCA** etc. I.e. set theory and Peano arithmetic.
I believe that they might be something like sanserif, but I'm not sure.
Can someone help to me ?
| https://tex.stackexchange.com/users/171927 | what is the proper command to format the names of big mathematical theories like ZFC/PA etc | true | There's no standard. I've seen several different notations:
* no special formatting;
* italic;
* boldface;
* sans serif medium;
* sans serif boldface.
Possibly others. Do yourself a favor by defining
```
\newcommand{\mt}[1]{\textup{#1}}% no special formatting, ensure upright
%\newcommand{\mt}[1]{\textit{#1}}% italic
%\newcommand{\mt}[1]{\textbf{#1}}% boldface
%\newcommand{\mt}[1]{\textsf{#1}}% sans serif medium
%\newcommand{\mt}[1]{\textsf{\textbf{#1}}}% sans serif boldface
```
and use `\mt{ZFC}` or `\mt{PA}` and so on.
When you decide what formatting suits you best, uncomment the corresponding line or maybe add a new one.
| 2 | https://tex.stackexchange.com/users/4427 | 686268 | 318,381 |
https://tex.stackexchange.com/questions/686196 | 1 | \IfDecimal returns an error number to big with large decimal. My goal is to print a percent rounded to to places if it is a number, otherwise just print the value of the parameter. Is there away around this size limit or is there another way around this given that I don't yet know whether I have a parsible number? The \SomePerc is a simplified macro that I am trying to use. Input to SomePerc is either a floating point or a "-" (as dash not negative)
```
\documentclass[]{article}
\usepackage{siunitx}
\usepackage{xstring}
\newcommand\SomePerc[1]{
\IfDecimal{#1}
{\qty[ exponent-mode = fixed,
fixed-exponent = 0,
drop-exponent=true,
drop-zero-decimal=true,
round-mode=places,
round-precision =2]{#1e2}{\percent}
}
{#1}
}
\begin{document}
\IfDecimal{0.05479140921}{true}{false}
\IfDecimal{0.0547914092}{true}{false}
\num{0.054791409210}
\SomePerc{0.05479140921}
\SomePerc{0.0547914092}
\end{document}
```
The latex compiler says:
```
Number too big. \IfDecimal{0.05479140921}
Number too big. \SomePerc{0.05479140921}
```
| https://tex.stackexchange.com/users/297371 | \IfDecimal returning Number to big | true | The following defines `\ifdecimal`, an expandable, fastish test that works for arbitrarily big numbers and places. It works for both `,` and `.` as the decimal separator, and arbitrary many signs. Everything that has at least one digit, at most one decimal separator, and no spaces is considered a decimal number. The input is fully expanded then stringified, the result of which has to match the aforementioned rules.
```
\documentclass{article}
\makeatletter
% needed to get a space inside of a definition
\newcommand\exparg@o[2]{\expanded{\unexpanded{#1}\expandafter}\expandafter{#2}}
% the front facing macro
\newcommand\ifdecimal[1]
{%
\expandafter\ifdecimal@space\detokenize\expanded{{#1}}\STOP
\ifdecimal@true
}
% true and false branching
\let\ifdecimal@true\@firstoftwo
\long\def\ifdecimal@false#1\ifdecimal@true#2#3{#3}
% check has no spaces
\exparg@o{\def\ifdecimal@space#1\STOP}%
{%
\@firstofone{\ifdecimal@space@#1\STOP\ifdecimal@false} \STOP % <- space
\ifdecimal@sign#1\MARK,\MARK
}
\def\ifdecimal@space@#1 #2\STOP{}
% strip leading signs
\def\ifdecimal@sign#1%
{%
\ifdecimal@sign@#1-\ifdecimal@sign@true+#1\ifdecimal@sign@true
+-\ifdecimal@dot#1%
}
\def\ifdecimal@sign@#1+-{}
\def\ifdecimal@sign@true#1+-\ifdecimal@dot#2{\ifdecimal@sign}
% turn one , into a . and then remove one decimal marker
\def\ifdecimal@dot#1,{\ifdecimal@dot@#1.}
\def\ifdecimal@dot@#1.{\ifdecimal@healmark\ifdecimal@empty#1}
\def\ifdecimal@healmark#1\MARK#2\MARK{#1\STOP}
% check is non-empty
\def\ifdecimal@empty#1\STOP
{%
\ifdecimal@empty@\MARK#1\STOP\ifdecimal@false\MARK\STOP
% the {0 \ifdecimal@done} works as the right delimiter to the input argument
\ifdecimal@digits#1{0 \ifdecimal@done}%
}
\def\ifdecimal@empty@#1\MARK\STOP{}
% check only digits left
\def\ifdecimal@digits#1%
{%
\ifnum9<1#1
\else
\expandafter\ifdecimal@false
\fi
\ifdecimal@digits
}
\def\ifdecimal@done#1\ifdecimal@digits{\fi}
\let\MARK\relax
\let\STOP\relax
\makeatother
% simple tests whether the macro works
\newcommand\ASSERT[2]
{%
\begingroup
\edef\tmpa{#2}%
\def\tmpb{#1}%
\expandafter
\endgroup
\ifx\tmpa\tmpb
\else
\GenericError{}{Assertion failed for \detokenize{#2}}{}{}%
\fi
}
\ASSERT{true}{\ifdecimal{0.}{true}{false}}
\ASSERT{true}{\ifdecimal{.0}{true}{false}}
\ASSERT{true}{\ifdecimal{0.0}{true}{false}}
\ASSERT{true}{\ifdecimal{00}{true}{false}}
\ASSERT{true}{\ifdecimal{+-+-+-+-00}{true}{false}}
\ASSERT{false}{\ifdecimal{.}{true}{false}}
\ASSERT{false}{\ifdecimal{+}{true}{false}}
\ASSERT{false}{\ifdecimal{-}{true}{false}}
\ASSERT{false}{\ifdecimal{+-}{true}{false}}
\ASSERT{false}{\ifdecimal{+-.}{true}{false}}
\ASSERT{false}{\ifdecimal{0+}{true}{false}}
\ASSERT{false}{\ifdecimal{0.0.0}{true}{false}}
\ASSERT{false}{\ifdecimal{a}{true}{false}}
\newcommand\five{5}
\ASSERT{true}{\ifdecimal{\five}{true}{false}}
\ASSERT{true}{\ifdecimal{\five .\five}{true}{false}}
\ASSERT{true}{\ifdecimal{\empty .\five}{true}{false}}
\ASSERT{false}{\ifdecimal{\five .\relax}{true}{false}}
\stop
```
| 2 | https://tex.stackexchange.com/users/117050 | 686270 | 318,382 |
https://tex.stackexchange.com/questions/686234 | 1 | I have some options to typeset
a command line option
with a comment inside
```
\verb|-interaction=nonstopmode -recorder -s prologues=2 -s outputtemplate="%j.mps"|
```
Because I need in many places
(in fact there are other reasons),
I use a command instead:
```
\newcommand{\metapostOptions}{\verb|-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="%j.mps"|}
```
There is a reason, complicated to explain, which prevents me from just escaping the percent like so: `\%`; in fact the text in the command is generated.
I can define the command only if i include this in change of catcode.
```
\catcode`\%=12
\newcommand{\metapostOptions}{\verb|-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="%j.mps"|}
\catcode`\%=14
```
Still I cannot use, because then
```
(./test.out) (./test-1.cpt
! LaTeX Error: \verb ended by end of line.
```
I really don't understand what happens and cannot help myself.
Help very much appreciated.
| https://tex.stackexchange.com/users/60463 | \verb in command does not work | false | You can define your own macro that reads in the replacement text in a verbatim way and store that in `\metapostOptions`:
```
\documentclass{article}
\NewDocumentCommand \newverbcontent { m v }
{\newcommand#1{\texttt{#2}}}
\newverbcontent\metapostOptions
|-interaction=nonstopmode -recorder -s prologues=2-s outputtemplate="%j.mps"|
\begin{document}
Use the following command line options: \metapostOptions.
\end{document}
```
| 3 | https://tex.stackexchange.com/users/117050 | 686272 | 318,383 |
https://tex.stackexchange.com/questions/686274 | 0 | I tried to compile an europecv document, but it fails with
```
(/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty))
! LaTeX hooks Error: Sorting rule for 'begindocument' hook applied too late.
(hooks) Try setting this rule earlier.
For immediate help type H <return>.
...
l.421 ...begindocument}{showkeys}{before}{nameref}
```
error. The strange thing is that I tried to put the modifications David Carlisle recommended, and in the europecv.cls file there are no line containing the incriminated command, nor the lines David said to being modded... Now I laugh in agony, frome where is this error coming, and when I applies
```
\AddToHook{begindocument/before}%
\RequirePackage{hyperref}%
}%
```
the error remains.
| https://tex.stackexchange.com/users/84868 | Document compile fails with latest europecv.cls | true | I appear to have a fixed copy of the class, presumably for a previous answer.
```
\documentclass{europecv}
\begin{document} x \end{document}
```
runs without error in a class fixed as follows
```
$ diff /usr/local/texlive/2023/texmf-dist/tex/latex/europecv/europecv.cls .
10c10
< \ProvidesClass{europecv}[08/03/2022 (Unicode TeX detection) European curriculum vitae class]
---
> \ProvidesClass{europecv}[13/03/2022 (Unicode TeX detection) European curriculum vitae class]
264c264
< \includegraphics[width=\ecv@logowidth]{europasslogo}}
---
> \includegraphics[width=\ecv@logowidth]{europasslogo.eps}}
420a421,422
> %\RequirePackage{ucs}
> %\RequirePackage[utf8x]{inputenc}
448c450
< \AtBeginDocument{%
---
> \AddToHook{begindocument/before}{%
```
| 1 | https://tex.stackexchange.com/users/1090 | 686277 | 318,385 |
https://tex.stackexchange.com/questions/686273 | 1 | Here is an example:
```
\documentclass[10pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
% modern themes
\moderncvstyle{banking} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
% character encoding
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\usepackage{import}
\nopagenumbers{}
% personal data
\name{Firstname}{Lastname}
\phone[mobile]{+1 (111) 111-1111}
\email{myemail@gmail.com}
\social{https://www.linkedin.com/in/mylinkedin}
\homepage{mywebsite.com}
\pagenumbering{gobble}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
\end{document}
```
My question is simple: How can I slightly separate (with vertical spacing) `Firstname Lastname` from the phone, email, social, website within `\makecvtitle`?
| https://tex.stackexchange.com/users/295684 | Different spacing in \makecvtitle | true | A simple way can be as follows.
```
\documentclass[10pt,a4paper,sans]{moderncv}
\renewcommand{\familydefault}{\sfdefault}
% modern themes
\moderncvstyle{banking}
\moderncvcolor{black}
% character encoding
%\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\usepackage{import}
\nopagenumbers{}
% personal data
\name{Firstname}{Lastname}
\phone[mobile]{+1 (111) 111-1111}
\email{myemail@gmail.com}
\social{https://www.linkedin.com/in/mylinkedin}
\homepage{mywebsite.com}
\pagenumbering{gobble}
% add some vertical space below the name
% original definition is
% \newcommand{\namestyle}[1]{{\namefont\textcolor{color1}{#1}}}
\renewcommand{\namestyle}[1]{{\namefont\textcolor{color1}{#1}\vspace{1ex}}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
\end{document}
```
Adjust `1ex` to your liking.
| 1 | https://tex.stackexchange.com/users/4427 | 686278 | 318,386 |
https://tex.stackexchange.com/questions/686082 | 1 | I would like the figures in this document to simply be numbered as "Figure 1", "Figure 2" etc. Right now, they are numbered as "Figure 0.1", "Figure 0.2" etc, which I assume has got something to do with the fact that this document does not contain chapters. However, I can't find the setting within my template that defines the numbering.
How do I change the figure numbers?
```
\RequirePackage{fix-cm}
\documentclass[%
twoside, openright, titlepage, numbers=noenddot,%
cleardoublepage=empty,%
abstractoff,%
BCOR=5.5mm, paper=a5, fontsize=10pt,% A5 soft cover
]{scrreprt}
\usepackage{etex}
\reserveinserts{10}
\usepackage[final]{pdfpages}
\begin{document}
\frenchspacing
\raggedbottom%
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\end{document}
```
| https://tex.stackexchange.com/users/209523 | Change Figure numbering from 0.1, 0.2 to 1, 2 | false | It depends on the type of document. You can type article, and the enumeration will come out as you want.
| 1 | https://tex.stackexchange.com/users/297433 | 686280 | 318,387 |
https://tex.stackexchange.com/questions/686288 | 0 | It always issues an error if I use \markthree in the last row, see below. The error is
>
> ! Missing number, treated as zero.
>
> {
> l.60 }
>
>
>
A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up` weird error' in the index to The TeXbook.)
! Illegal unit of measure (pt inserted).
{
l.60 }
```
{Personal Total $=$ Personal mark $+$ Group total mark \vskip1mm [20]} &\pgfmathparse{\markone+\groupmark}\pgfmathresult &\pgfmathparse{\marktwo+\groupmark}\pgfmathprint{\pgfmathresult} &\pgfmathparse{\groupmark+\markthree}\pgfmathprint{\pgfmathresult} \\[5mm]
```
If I delete `\markthree` in this line, it works fine. I do not understand what the issue is. Is it because there is a limit to the number of variables used in the `\foreach` command?
```
\documentclass[multi=true,tikz]{standalone}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{ctable}
\usepackage{array}
\usepackage{pgffor}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows,chains,positioning,calc,}
%opening
\standaloneenv{tikzpicture, frame}
\date{}
\renewcommand{\arraystretch}{1.5}
\begin{document}
%\begin{tikzpicture}
% \node (1) {};
\foreach \groupnum/\grouptitle/\feedback/\groupmark/\pone/\markone/\ptwo/\marktwo/\pthree/\markthree in {
1/title1/
{feedbackone}
/{11}/name1/{5}/name2/{5}/name3/{4},
6/{}/{}/{0}/name1/{}/name2/{}/{}/{}
}{
% \node (\groupnum)[below=10 mm of current bounding box]{
\begin{tikzpicture}
\node (title) [below=10mm of current bounding box, text width = 18cm, align = flush center, font=\Large\bfseries]{marking proforma};
\node (table) [below=5mm of title, text width = 25cm]{
\begin{tabular}{|>{\centering}m{5cm} |m{6cm} |m{6cm} |m{6cm}|}
\toprule
\hline
Group Number: & \multicolumn{3}{c|}{\bfseries\groupnum}\\
\hline
Presentation title: & \multicolumn{3}{c|}{\large\textbf{\color{blue}\grouptitle}}\\
\hline
Feedback & \multicolumn{3}{p{18cm}|}{\feedback}\\[5cm]
\hline
Group Total [15]& \multicolumn{3}{c|}{\groupmark}\\[5mm]
\hline
Presenter & \multicolumn{1}{c|}{\bfseries\pone} & \multicolumn{1}{c|}{\bfseries\ptwo} & \multicolumn{1}{c|}{\bfseries\pthree} \\
\hline
Presenter personal mark ([5])&\multicolumn{1}{c|}{\markone} &\multicolumn{1}{c|}{\marktwo} & \multicolumn{1}{c|}{\markthree}\\[5mm]
\hline
{Personal Total $=$ Personal mark $+$ Group total mark \vskip1mm [20]} &\pgfmathparse{\markone+\groupmark}\pgfmathresult &\pgfmathparse{\marktwo+\groupmark}\pgfmathprint{\pgfmathresult} &\pgfmathparse{\groupmark+\markthree}\pgfmathprint{\pgfmathresult} \\[5mm]
\hline
\bottomrule
\end{tabular}};
\end{tikzpicture}
}
\end{document}
```
| https://tex.stackexchange.com/users/137217 | I do not understand the error. Is there a limit to the number variables in \foreach? | true | There's no problem with using 10 variables. The issue is `\pgfmathparse{\groupmark+\markthree}` receiving `{}` instead of a number.
With the following changes your code compiles fine:
```
\foreach \groupnum/\grouptitle/\feedback/\groupmark/\pone/\markone/\ptwo/\marktwo/\pthree/\markthree in {
1/title1/
{feedbackone}
/{11}/name1/{5}/name2/{5}/name3/{4},
6/{}/{}/{0}/name1/{}/name2/{}/{}/0 % <-- Notice change here
}{
```
| 3 | https://tex.stackexchange.com/users/125871 | 686292 | 318,389 |
https://tex.stackexchange.com/questions/686082 | 1 | I would like the figures in this document to simply be numbered as "Figure 1", "Figure 2" etc. Right now, they are numbered as "Figure 0.1", "Figure 0.2" etc, which I assume has got something to do with the fact that this document does not contain chapters. However, I can't find the setting within my template that defines the numbering.
How do I change the figure numbers?
```
\RequirePackage{fix-cm}
\documentclass[%
twoside, openright, titlepage, numbers=noenddot,%
cleardoublepage=empty,%
abstractoff,%
BCOR=5.5mm, paper=a5, fontsize=10pt,% A5 soft cover
]{scrreprt}
\usepackage{etex}
\reserveinserts{10}
\usepackage[final]{pdfpages}
\begin{document}
\frenchspacing
\raggedbottom%
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\end{document}
```
| https://tex.stackexchange.com/users/209523 | Change Figure numbering from 0.1, 0.2 to 1, 2 | false | * You should make your MWE (Minimal Working Example) compilable ... we haven't your files, consequently in my MWE I use example image, which are available to anyone.
* It is not clear, what is structure of your document, Is it divided on chapters and you have some images before first chapter, where you like to have figure numbering as you ask?
* Document classes report and book default numbering is `<chapter num>.<figure num>`. This deliberately select for simpler navigate where are some image in document.
* That numberoin start with `0` means, that you image are before `\chapter{ chapter title}`
* If you not like to have chapters, than please use ˙article`or in your case`scrarticle` document class. Using them figure numbering will be as you like to have
* In the case, that you like to have chapters in your document, and like change default numbering of figures, just redefine `\thefigure`. For example `\renewcommand\thefigure{\arabic{figure}}`
* in MWE below is (for now) considered, that all figures in your report haw the same way of numbering, as you ask in question:
```
\RequirePackage{fix-cm}
\documentclass[%
twoside, openright, titlepage, numbers=noenddot,%
cleardoublepage=empty,%
abstractoff,%
BCOR=5.5mm, paper=a5, fontsize=10pt,% A5 soft cover
]{scrreprt}
\usepackage{graphicx}
\renewcommand\thefigure{\arabic{figure}} % <----
\begin{document}
\frenchspacing
\raggedbottom%
\begin{figure}[ht]
\centering
\includegraphics[width=0.4\linewidth]{example-image-a}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[ht]
\centering
\includegraphics[width=0.4\linewidth]{example-image-b}
\caption{\textbf{Title}. Content.}
\end{figure}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/18189 | 686304 | 318,393 |
https://tex.stackexchange.com/questions/686294 | 1 | I am currently working on my Ph.D. thesis and require assistance in creating an environment where I can insert a figure. However, I need the title of the figure to be named "Plate" instead. I have attempted to use a certain code, but I have encountered an issue where the Figure numbering does not start from 1. Instead, it continues from the numbering in the Plate environment that I created. Therefore, I need both the Plate and Figure environments to function simultaneously but with individual numbering. It is crucial that this works in "overleaf". Could you please help me with this?
```
\documentclass{article}
\usepackage{graphicx}
\newenvironment{plate}[1][]{
\renewcommand{\figurename}{Plate}
\begin{figure}[#1]
}{
\end{figure}
}
\newenvironment{topcaption}{
\captionsetup{position=top}
}{}
\begin{document}
\begin{plate}[h]
\centering
\includegraphics[width=0.5\textwidth]{LOAMR1B.png}
\caption{This is a plate}
\label{plate:example}
\end{plate}
\begin{figure}
\centering
\includegraphics[scale = 0.6]{LOAMR1B.png}
\caption{Caption}
\label{fig:my_label}
\end{figure}
\end{document}
```
| https://tex.stackexchange.com/users/245228 | create a new environment by modifiying figure environment so that title will have the name Plate instead of Figure | true | You could create new counters for plate and figure and then set the figure counter to the counter each time:
```
\documentclass{article}
\usepackage{graphicx}
\newcounter{platecnt}
\newcounter{figcnt}
\newcommand{\setfigurenumber}[1]
{
\refstepcounter{#1}
\renewcommand{\thefigure}{\arabic{#1}}
}
\newenvironment{plate}[1][]{
\renewcommand{\figurename}{Plate}
\begin{figure}[#1]
}{
\end{figure}
}
\begin{document}
\begin{plate}[h]
\centering
\setfigurenumber{platecnt}
\includegraphics[width=0.5\textwidth]{LOAMR1B.png}
\caption{This is a plate}
\label{plate:example}
\end{plate}
\begin{figure}
\centering
\setfigurenumber{figcnt}
\includegraphics[scale = 0.6]{LOAMR1B.png}
\caption{Caption}
\label{fig:my_label}
\end{figure}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/281557 | 686306 | 318,394 |
https://tex.stackexchange.com/questions/686299 | 0 | An example:
```
%\documentclass{article}
\documentclass{egpubl}
\begin{document}
\tableofcontents
\section{one}
\newpage
\section{two}
\newpage
\section{three}
\newpage
\end{document}
```
Doc style:
<https://www.eg.org/wp/eurographics-publications/guidelines/>
<https://www.eg.org/wp/wp-content/uploads/2019/01/egPublStyle-cgf.zip>
| https://tex.stackexchange.com/users/34827 | Table of contents doesn't show page numbers for EG/CGF doc | false | I just compiled your example
```
%\documentclass{article}
\documentclass{egpubl}
\begin{document}
\tableofcontents
\section{one}
\newpage
\section{two}
\newpage
\section{three}
\newpage
\end{document}
```
and it looks like this:
I fail to see your problem.
| 0 | https://tex.stackexchange.com/users/174344 | 686308 | 318,396 |
https://tex.stackexchange.com/questions/686302 | 1 | I would like to display `DOI` with `\DeclareCiteCommand`. I'm using `\documentclass{report}`.
I tried this:
```
\documentclass{article}
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{references.bib}
\DeclareCiteCommand{\mycite}%
{
\usebibmacro{prenote}\addspace
}%
{%
\mkbibquote{\thefield{title}}%
\addcomma\addspace by \printnames[][-\value{listtotal}]{author}%
\addcomma\addspace \thefield{year}%
\addcomma\addspace \mkbibitalic{\thefield{journaltitle}}%
\addcomma\addspace \mkbibitalic{\thefield{volume}}%
\mkbibparens{\thefield{number}}%
\addcomma\addspace%
}
{}
{
\usebibmacro{postnote}%
\addspace%
\mkbibparens{\url{\thefield{doi}}}%
\adddot%
}
\begin{document}
\mycite{sampleentry}
\end{document}
```
In the bibliography, I put this entry found in "Publication Manual of the American Psychological Association, Seventh Edition (2020)":
```
@article{sampleentry,
author = {Wang, Xiaoye and Lind, Mats and Bingham, Geoffrey},
year = {2018},
month = {06},
pages = {1513},
title = {Large Continuous Perspective Change With Noncoplanar Points Enables Accurate Slant Perception},
volume = {44},
number = {10},
journal = {Journal of Experimental Psychology: Human Perception and Performance},
doi = {https://doi.org/10.1037/xhp0000553},
}
```
However, I only get `\thefield{doi}`. Is there another command to print the `DOI`?
| https://tex.stackexchange.com/users/209343 | Display DOI in DeclareCiteCommand | false | It seems that no command can be used in the `postnote` part.
```
\DeclareCiteCommand{\CustomCite}
{
\usebibmacro{prenote}\addspace
}
{%
\mkbibquote{\thefield{title}}%
\addcomma\addspace by \printnames[][-\value{listtotal}]{author} %
\addcomma\addspace \thefield{year} %
\addcomma\addspace \mkbibitalic{\thefield{journaltitle}} %
\addcomma\addspace \mkbibitalic{\thefield{volume}} %
\mkbibparens{\thefield{number}} %
\addcomma \addspace %
\mkbibparens{\thefield{doi}} %
}
{}
{
\usebibmacro{postnote} %
\adddot %
}
```
| 0 | https://tex.stackexchange.com/users/209343 | 686309 | 318,397 |
https://tex.stackexchange.com/questions/685927 | 5 | I'm using `xindy` to create indeces. However, the default sort order is not sensible for uppercase and lowercase. Is there a way to create a .xdy file so that the uppercases are sorted in front of lowercases.
Here is an example:
```
A
Abel.......
Alex.......
aboutism...
account....
axis.......
B
Bible......
basics.....
bigger.....
```
I think the issue is, by default, uppercase letters are mapped to lowercase letters, thus cannot be distinguished former and sorted according to that. I wonder if anyone can help me create a .xdy that sorts alphabet **case-sensitively.**
| https://tex.stackexchange.com/users/54169 | Is there a way to sort index from Uppercases to lowercases | false | Xindy puts index entries into dedicated lettergroups by the entry prefix, which is the same as the first letter by default. So it's pretty much sufficient to create lettergroups that account for both upper- and lowercase letters. For example, `case.xdy`:
```
(define-letter-group "A" :prefixes ("A" "a"))
(define-letter-group "B" :prefixes ("B" "b"))
(define-letter-group "C" :prefixes ("C" "c"))
(define-letter-group "D" :prefixes ("D" "d"))
(define-letter-group "E" :prefixes ("E" "e"))
(define-letter-group "F" :prefixes ("F" "f"))
(define-letter-group "G" :prefixes ("G" "g"))
(define-letter-group "H" :prefixes ("H" "h"))
(define-letter-group "I" :prefixes ("I" "i"))
(define-letter-group "J" :prefixes ("J" "j"))
(define-letter-group "K" :prefixes ("K" "k"))
(define-letter-group "L" :prefixes ("L" "l"))
(define-letter-group "M" :prefixes ("M" "m"))
(define-letter-group "N" :prefixes ("N" "n"))
(define-letter-group "O" :prefixes ("O" "o"))
(define-letter-group "P" :prefixes ("P" "p"))
(define-letter-group "Q" :prefixes ("Q" "q"))
(define-letter-group "R" :prefixes ("R" "r"))
(define-letter-group "S" :prefixes ("S" "s"))
(define-letter-group "T" :prefixes ("T" "t"))
(define-letter-group "U" :prefixes ("U" "u"))
(define-letter-group "V" :prefixes ("V" "v"))
(define-letter-group "W" :prefixes ("W" "w"))
(define-letter-group "X" :prefixes ("X" "x"))
(define-letter-group "Y" :prefixes ("Y" "y"))
(define-letter-group "Z" :prefixes ("Z" "z"))
(define-rule-set "ignore-special"
:rules (("?" "") ("." "") ("-" "") ("'" "") ("!" "") ("{" "") ("}" "")
))
(define-sort-rule-orientations (forward))
(use-rule-set :run 0
:rule-set ("ignore-special"))
```
(`ignore-special` conveniently drops some non-alphabetic characters to ease sorting.)
An example of the indexed TeX source `test.tex`:
```
\documentclass[a4paper,12pt,hyphens]{article}
\usepackage[xindy,noautomatic]{imakeidx}
\makeindex
\begin{document}
Abel\index{Abel}
Alex\index{Alex}
aboutism\index{aboutism}
account\index{account}
axis\index{axis}
Bible\index{Bible}
basics\index{basics}
bigger\index{bigger}
\printindex
\end{document}
```
Executing
```
pdflatex test.tex
xindy -M case.xdy test.idx
pdflatex test.tex
```
yields the following result (the second page):
Note that here we use the fact that Latin letters are naturally sorted by there Unicode (or ASCII) codepoints. If you need to sort more complicated characters, you'd have to extend the `case.xdy` file.
| 1 | https://tex.stackexchange.com/users/121550 | 686310 | 318,398 |
https://tex.stackexchange.com/questions/686302 | 1 | I would like to display `DOI` with `\DeclareCiteCommand`. I'm using `\documentclass{report}`.
I tried this:
```
\documentclass{article}
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{references.bib}
\DeclareCiteCommand{\mycite}%
{
\usebibmacro{prenote}\addspace
}%
{%
\mkbibquote{\thefield{title}}%
\addcomma\addspace by \printnames[][-\value{listtotal}]{author}%
\addcomma\addspace \thefield{year}%
\addcomma\addspace \mkbibitalic{\thefield{journaltitle}}%
\addcomma\addspace \mkbibitalic{\thefield{volume}}%
\mkbibparens{\thefield{number}}%
\addcomma\addspace%
}
{}
{
\usebibmacro{postnote}%
\addspace%
\mkbibparens{\url{\thefield{doi}}}%
\adddot%
}
\begin{document}
\mycite{sampleentry}
\end{document}
```
In the bibliography, I put this entry found in "Publication Manual of the American Psychological Association, Seventh Edition (2020)":
```
@article{sampleentry,
author = {Wang, Xiaoye and Lind, Mats and Bingham, Geoffrey},
year = {2018},
month = {06},
pages = {1513},
title = {Large Continuous Perspective Change With Noncoplanar Points Enables Accurate Slant Perception},
volume = {44},
number = {10},
journal = {Journal of Experimental Psychology: Human Perception and Performance},
doi = {https://doi.org/10.1037/xhp0000553},
}
```
However, I only get `\thefield{doi}`. Is there another command to print the `DOI`?
| https://tex.stackexchange.com/users/209343 | Display DOI in DeclareCiteCommand | false | You shouldn't have to use `\thefield` for printing. Instead use `\printfield` and friends or even better pre-defined bibmacros that print whole chunks of the data you want to show. You should also not have bare `\addcomma\addspace`s flying around. Those should be inside `\setunit`s to make use of `biblatex`'s punctuation buffer.
As shown the macro also risks introducing massive amount of undesirable space.
I suggest the following approach, where `\printfield{doi}` to print the DOI works perfectly fine.
Logically, however, it is a bit unusual and possibly risky to print entry data in the "postnote" code: If you cite multiple entries you end up with the data from the last key. The others are ignored. It might be more logical to move all printing into the loopcode and possibly warn if more than one entry is cited.
```
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear]{biblatex}
\DeclareFieldFormat{ccdoi}{%
\mkbibparens{%
\ifhyperref
{\href{https://doi.org/#1}{\nolinkurl{https://doi.org/#1}}}
{\nolinkurl{https://doi.org/#1}}}}
\DeclareCiteCommand{\CustomCite}
{\usebibmacro{prenote}}
{\printfield{title}%
\setunit{\addcomma\space}%
\bibstring{byauthor}%
\setunit{\addspace}%
\printnames[default]{author}%
\setunit{\addcomma\space}%
\printdate
\setunit{\addcomma\space}%
\usebibmacro{journal+issuetitle}}
{\multicitedelim}
{\usebibmacro{postnote}%
\setunit{\addspace}%
\printfield[ccdoi]{doi}}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
\CustomCite{sigfridsson}
\CustomCite[381]{sigfridsson}
\printbibliography
\end{document}
```
---
The problem in the updated code was
```
\url{\thefield{doi}}
```
Depending on the definition `\url` reads and prints its argument almost verbatim. In this case this means that the output that it produces is `\thefield{doi}`, which is not what you want. (`\mkbibparens{\thefield{doi}}` instead of `\mkbibparens{\url{\thefield{doi}}}` would have produced output more to your liking. But you would have gotten into trouble with hyphenation and linking, so this is definitely not recommended.) Again, you want to use `\printfield{doi}` instead, because that uses `\url` (and friends) in the correct way.
| 5 | https://tex.stackexchange.com/users/35864 | 686315 | 318,399 |
https://tex.stackexchange.com/questions/686313 | 0 | I'm trying to create a papercraft cube, and can't seem to get an image in one of the faces. I have tried [this](https://tex.stackexchange.com/questions/193555/crop-jpeg-into-circular-tikz-node)
```
\documentclass{article}
\usepackage[paperwidth=8cm,paperheight=8cm,margin=0.5cm]{geometry}
\usepackage{tikz}
\begin{document}
\usetikzlibrary {folding}
\begin{tikzpicture}[scale=3.3]
\pic [
folding line length=6mm,
transform shape,
rotate=40,
face 1= { \node{ Pax }; },
face 2= { \node{ Tibi }; },
face 3= { \node{\tiny Marce}; },
face 4= { \node{\tiny Evangelista}; },
face 5= { \node{\tiny Meus}; }
face 6= { \node[path picture={\node at (path picture bounding box.center){ \includegraphics{dogos.jpg}} }] }
]
{ cube folding };
\end{tikzpicture}
\end{document}
```
I have tried [this](https://tex.stackexchange.com/questions/580810/inserting-multiple-images-to-a-tikz-paper-folding-diagram) too, with the two versions; it does not work either.
It simply creates an empty face (it also creates two pages, I don't really know why). I have also tried simply including `\includegraphics` into the face, but that does not work either. The only difference with the two examples seems to be that it's rotated and the scale, but I don't think that is the thing. The image is in .png and .jpg format, too.
| https://tex.stackexchange.com/users/44759 | Can't include an image in a folded cube in Tikz | true | You were missing a `,` between `face 5` and `face 6` which is the reason why face 6 was empty.
I'd only use one node here where the image is scaled to the `folding line length`.
Code
----
```
\documentclass{article}
\usepackage[paperwidth=8cm,paperheight=8cm,margin=0.5cm]{geometry}
\usepackage{tikz}
\usetikzlibrary {folding}
\begin{document}
\begin{tikzpicture}[scale=3]
\pic [
folding line length=6mm,
transform shape,
rotate=40,
face 1= { \node{ Pax }; },
face 2= { \node{ Tibi }; },
face 3= { \node{\tiny Marce}; },
face 4= { \node{\tiny Evangelista}; },
face 5= { \node{\tiny Meus}; }, % ← ,
face 6= { \node{\includegraphics[width=6mm]{example-image} }; } % ← ;
]
{ cube folding };
\end{tikzpicture}
\end{document}
```
Output
------
| 1 | https://tex.stackexchange.com/users/16595 | 686318 | 318,402 |
https://tex.stackexchange.com/questions/686299 | 0 | An example:
```
%\documentclass{article}
\documentclass{egpubl}
\begin{document}
\tableofcontents
\section{one}
\newpage
\section{two}
\newpage
\section{three}
\newpage
\end{document}
```
Doc style:
<https://www.eg.org/wp/eurographics-publications/guidelines/>
<https://www.eg.org/wp/wp-content/uploads/2019/01/egPublStyle-cgf.zip>
| https://tex.stackexchange.com/users/34827 | Table of contents doesn't show page numbers for EG/CGF doc | true | The `egpubl.cls` file from the linked-to zip archive contains
```
\def\l@section#1#2{\addpenalty{\@secpenalty}
\@tempdima 1.5em
\begingroup
\parindent \z@ \rightskip \@pnumwidth
%% DF
% \parfillskip -\@pnumwidth \reset@font\rm \leavevmode
\parfillskip -\@pnumwidth \reset@font\rmfamily \leavevmode
%%
\advance\leftskip\@tempdima \hskip -\leftskip
#1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss \ }\par
\endgroup}
```
Here `#2` stands for the page number. This page number is correctly to be found in the `.toc` file after first LaTeX pass as third argument to `\contentsline`. But the definition above simply ignores this `#2` which is never used in the code.
So this is a deliberate feature of this class. Else it is some oversight but that sounds unlikely as every user will be confronted with the output without page numbers in the TOC for sections.
---
The sample PDF [here](https://www.eg.org/wp/wp-content/uploads/2019/01/EGauthorGuidelines-cgf-sub.pdf) does not make any reference to a TOC. Perhaps it is not expected to use `\tableofcontents` at all?
---
Here is how to force printing of page numbers:
```
\makeatletter
\def\l@section#1#2{\addpenalty{\@secpenalty}
\@tempdima 1.5em
\begingroup
\parindent \z@ \rightskip \@pnumwidth
%% DF
% \parfillskip -\@pnumwidth \reset@font\rm \leavevmode
\parfillskip -\@pnumwidth \reset@font\rmfamily \leavevmode
%%
\advance\leftskip\@tempdima \hskip -\leftskip
% ORIGINAL WITH NO PAGE NUMBERS
% #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss \ }\par
% PATCH COPIED OVER FROM article.cls
#1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2\kern -\p@ \kern \p@ }\par
\endgroup}
\def\@undottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth
\else
\vskip \z@ plus .2pt
{\hangindent #2\relax
\rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax \@afterindenttrue
\interlinepenalty\@M \leavevmode
\@tempdima #3\relax #4\nobreak \hfill \nobreak
%% DF
% \hbox to\@pnumwidth{\hfil\reset@font\rm \ }\par}\fi}
% ORIGINAL WITH NO PAGE NUMBERS
% \hbox to\@pnumwidth{\hfil\reset@font\rmfamily \ }\par}\fi}
% PATCH COPIED FROM article.cls
\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor #5\kern -\p@ \kern \p@ }\par }\fi}
\makeatother
```
You may need to change a bit the above as I copied pasted my modifications from article class, and there are slight differences to the original code, so perhaps keep usage of `\reset@font\rmfamily`. It may be that original code from which `#2` or `#5` got removed was decades old.
| 1 | https://tex.stackexchange.com/users/293669 | 686319 | 318,403 |
https://tex.stackexchange.com/questions/686082 | 1 | I would like the figures in this document to simply be numbered as "Figure 1", "Figure 2" etc. Right now, they are numbered as "Figure 0.1", "Figure 0.2" etc, which I assume has got something to do with the fact that this document does not contain chapters. However, I can't find the setting within my template that defines the numbering.
How do I change the figure numbers?
```
\RequirePackage{fix-cm}
\documentclass[%
twoside, openright, titlepage, numbers=noenddot,%
cleardoublepage=empty,%
abstractoff,%
BCOR=5.5mm, paper=a5, fontsize=10pt,% A5 soft cover
]{scrreprt}
\usepackage{etex}
\reserveinserts{10}
\usepackage[final]{pdfpages}
\begin{document}
\frenchspacing
\raggedbottom%
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[t]
\centering
\resizebox{0.4\linewidth}{!}{%
\input{test.tex}
}
\caption{\textbf{Title}. Content.}
\end{figure}
\end{document}
```
| https://tex.stackexchange.com/users/209523 | Change Figure numbering from 0.1, 0.2 to 1, 2 | false | I don't get “0.1” and ”0.2”, because `scrreprt` omits the chapter number if it's 0.
On the other hand, I get “1.1” and “1.2” if a chapter is started.
I guess you want the figures to be numbered consecutively across chapters, so you need
```
\counterwithout{figure}{chapter}
```
Full code. Look at the comments I added. Also `[t]` is not a good option: better `[tp]` or `[htp]`.
```
\RequirePackage{fix-cm}
\documentclass[
twoside,
% openright, % <--- omitted just for showing the result
titlepage,
numbers=noenddot,
cleardoublepage=empty,
abstract=false, % <--- abstractoff is deprecated
BCOR=5.5mm,
paper=a5,
fontsize=10pt,% A5 soft cover
]{scrreprt}
%\usepackage{etex} % <--- no longer needed, better not use it
%\reserveinserts{10} % <--- no longer needed, and invalid without etex
\usepackage[final]{pdfpages}
\counterwithout{figure}{chapter}
\frenchspacing
\raggedbottom % <--- not good with twoside
\begin{document}
\chapter{Test A}
\begin{figure}[htp]
\centering
\resizebox{0.4\linewidth}{!}{%
ABCDEF
}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[htp]
\centering
\resizebox{0.4\linewidth}{!}{%
ABCDEF
}
\caption{\textbf{Title}. Content.}
\end{figure}
\chapter{Test B}
\begin{figure}[htp]
\centering
\resizebox{0.4\linewidth}{!}{%
ABCDEF
}
\caption{\textbf{Title}. Content.}
\end{figure}
\begin{figure}[htp]
\centering
\resizebox{0.4\linewidth}{!}{%
ABCDEF
}
\caption{\textbf{Title}. Content.}
\end{figure}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/4427 | 686322 | 318,404 |
https://tex.stackexchange.com/questions/686331 | 2 | I want to show a graph on a beamer slide. However, using
```
\begin{frame}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,semithick]
% Nodes
\node[draw,circle,fill=cyan!10] (v1) at (0, 0) {$-5$};
\node[draw,circle,fill=cyan!10] (t) at (2, 0) {$-1$};
% Edges
\only<1>{ \path (t) edge node {$1$} (v1);}
\only<2>{ \path (t) edge node {$1 / 2$} (v1);}
% Legend
\node[draw, rectangle, below] at (-1.5, -1) {
\begin{tabular}{@{}rcl@{}}
\only<1->{Some text & : & A \\}
\only<2->{More text & : & B \\
Even more & : & C}
\end{tabular}
};
\end{tikzpicture}
\end{frame}
```
causes the nodes to move slightly in the northeast direction between the both slides generated by this.
I would much rather have the node positions fixed between the two slides while the legend somewhat changes.
Adding the `remember picture` parameter to the tikzpicture didn't help.
| https://tex.stackexchange.com/users/297473 | Fix node position in tikzpicture between \only-slides in beamer | true | Instead of using `\only`, I would use `\visible` and `visible on=` (the later is from the `overlay-beamer-styles` library). This way the content is still there on the other overlays, just not visible, which will avoid the jumping.
```
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{overlay-beamer-styles}
\usetikzlibrary{arrows}
\begin{document}
\begin{frame}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,semithick]
% Nodes
\node[draw,circle,fill=cyan!10] (v1) at (0, 0) {$-5$};
\node[draw,circle,fill=cyan!10] (t) at (2, 0) {$-1$};
% Edges
\path[visible on=<1>] (t) edge node {$1$} (v1);
\path[visible on=<2>] (t) edge node {$1 / 2$} (v1);
% Legend
\node[draw, rectangle, below] at (-1.5, -1) {
\begin{tabular}{@{}rcl@{}}
\visible<1->{Some text & : & A \\}
\visible<2->{More text & : & B \\
Even more & : & C}
\end{tabular}
};
\end{tikzpicture}
\end{frame}
\end{document}
```
| 3 | https://tex.stackexchange.com/users/36296 | 686334 | 318,409 |
https://tex.stackexchange.com/questions/686329 | 1 | I have this table that I want to fit over multiple pages, therefore `longtable`. Now it won't fit to the page width.
The table is pretty big...
The second and third column are coordinates and can't be shortened unfortunately...
```
\hline
\multicolumn{1}{|l|}{} &
\multicolumn{2}{c|}{Design} &
\multicolumn{2}{c|}{Kontrol} &
\multicolumn{2}{c|}{Differens} &
\multicolumn{1}{l|}{Gns.snit} &
\multicolumn{1}{l|}{Sigma} &
\multicolumn{1}{l|}{d\_max} \\ \hline
\endfirsthead
%
\endhead
%
\multicolumn{1}{|l|}{Pkt.} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
{\color[HTML]{202122} μ {[}m{]}} &
{\color[HTML]{202122} σ {[}m{]}} &
{[}m{]} \\ \hline
1 & \multicolumn{1}{r|}{729598,741} & 6171261,02 & \multicolumn{1}{r|}{729598,743} & 6171261,029 & \multicolumn{1}{r|}{-0,002} & -0,009 & & & \\ \cline{1-7}
2 & \multicolumn{1}{r|}{729598,897} & 6171260,664 & \multicolumn{1}{r|}{729598,909} & 6171260,669 & \multicolumn{1}{r|}{-0,012} & -0,005 & & & \\ \cline{1-7}
3 & \multicolumn{1}{r|}{729598,973} & 6171260,489 & \multicolumn{1}{r|}{729598,987} & 6171260,491 & \multicolumn{1}{r|}{-0,014} & -0,002 & & & \\ \cline{1-7}
4 & \multicolumn{1}{r|}{729591,938} & 6171258,298 & \multicolumn{1}{r|}{729591,935} & 6171258,284 & \multicolumn{1}{r|}{0,003} & 0,014 & & & \\ \cline{1-7}
5 & \multicolumn{1}{r|}{729592,087} & 6171257,93 & \multicolumn{1}{r|}{729592,087} & 6171257,926 & \multicolumn{1}{r|}{0,000} & 0,004 & & & \\ \cline{1-7}
6 & \multicolumn{1}{r|}{729592,181} & 6171257,727 & \multicolumn{1}{r|}{729592,184} & 6171257,726 & \multicolumn{1}{r|}{-0,003} & 0,001 & & & \\ \cline{1-7}
7 & \multicolumn{1}{r|}{729586,791} & 6171256,205 & \multicolumn{1}{r|}{729586,792} & 6171256,222 & \multicolumn{1}{r|}{-0,001} & -0,017 & & & \\ \cline{1-7}
8 & \multicolumn{1}{r|}{729586,931} & 6171255,84 & \multicolumn{1}{r|}{729586,935} & 6171255,830 & \multicolumn{1}{r|}{-0,004} & 0,01 & & & \\ \cline{1-7}
9 & \multicolumn{1}{r|}{729587,022} & 6171255,644 & \multicolumn{1}{r|}{729587,020} & 6171255,648 & \multicolumn{1}{r|}{0,002} & -0,004 & & & \\ \cline{1-7}
10 & \multicolumn{1}{r|}{729583,342} & 6171254,816 & \multicolumn{1}{r|}{729583,347} & 6171254,816 & \multicolumn{1}{r|}{-0,005} & 0,000 & & & \\ \cline{1-7}
11 & \multicolumn{1}{r|}{729583,489} & 6171254,435 & \multicolumn{1}{r|}{729583,499} & 6171254,431 & \multicolumn{1}{r|}{-0,010} & 0,004 & & & \\ \cline{1-7}
12 & \multicolumn{1}{r|}{729583,576} & 6171254,245 & \multicolumn{1}{r|}{729583,561} & 6171254,249 & \multicolumn{1}{r|}{0,015} & -0,004 & & & \\ \cline{1-7}
13 & \multicolumn{1}{r|}{729579,337} & 6171253,176 & \multicolumn{1}{r|}{729579,336} & 6171253,173 & \multicolumn{1}{r|}{0,001} & 0,003 & & & \\ \cline{1-7}
14 & \multicolumn{1}{r|}{729579,438} & 6171252,864 & \multicolumn{1}{r|}{729579,449} & 6171252,857 & \multicolumn{1}{r|}{-0,011} & 0,007 & & & \\ \cline{1-7}
15 & \multicolumn{1}{r|}{729579,562} & 6171252,6 & \multicolumn{1}{r|}{729579,553} & 6171252,603 & \multicolumn{1}{r|}{0,009} & -0,003 & & & \\ \cline{1-7}
16 & \multicolumn{1}{r|}{729575,731} & 6171251,687 & \multicolumn{1}{r|}{729575,729} & 6171251,683 & \multicolumn{1}{r|}{0,002} & 0,004 & & & \\ \cline{1-7}
17 & \multicolumn{1}{r|}{729575,814} & 6171251,419 & \multicolumn{1}{r|}{729575,834} & 6171251,411 & \multicolumn{1}{r|}{-0,020} & 0,008 & & & \\ \cline{1-7}
18 & \multicolumn{1}{r|}{729575,958} & 6171251,135 & \multicolumn{1}{r|}{729575,952} & 6171251,134 & \multicolumn{1}{r|}{0,006} & 0,001 & & & \\ \cline{1-7}
19 & \multicolumn{1}{r|}{729568,597} & 6171248,783 & \multicolumn{1}{r|}{729568,580} & 6171248,789 & \multicolumn{1}{r|}{0,017} & -0,006 & & & \\ \cline{1-7}
20 & \multicolumn{1}{r|}{729568,73} & 6171248,412 & \multicolumn{1}{r|}{729568,726} & 6171248,417 & \multicolumn{1}{r|}{0,004} & -0,005 & & & \\ \cline{1-7}
21 & \multicolumn{1}{r|}{729568,795} & 6171248,231 & \multicolumn{1}{r|}{729568,803} & 6171248,223 & \multicolumn{1}{r|}{-0,008} & 0,008 & & & \\ \cline{1-7}
22 & \multicolumn{1}{r|}{729562,201} & 6171246,188 & \multicolumn{1}{r|}{729562,204} & 6171246,191 & \multicolumn{1}{r|}{-0,003} & -0,003 & & & \\ \cline{1-7}
23 & \multicolumn{1}{r|}{729562,341} & 6171245,81 & \multicolumn{1}{r|}{729562,334} & 6171245,818 & \multicolumn{1}{r|}{0,007} & -0,008 & & & \\ \cline{1-7}
24 & \multicolumn{1}{r|}{729562,41} & 6171245,628 & \multicolumn{1}{r|}{729562,408} & 6171245,631 & \multicolumn{1}{r|}{0,002} & -0,003 & & & \\ \cline{1-7}
25 & \multicolumn{1}{r|}{729555,891} & 6171243,616 & \multicolumn{1}{r|}{729555,895} & 6171243,617 & \multicolumn{1}{r|}{-0,004} & -0,001 & & & \\ \cline{1-7}
26 & \multicolumn{1}{r|}{729556,006} & 6171243,377 & \multicolumn{1}{r|}{729556,003} & 6171243,377 & \multicolumn{1}{r|}{0,003} & 0,000 & & & \\ \cline{1-7}
27 & \multicolumn{1}{r|}{729556,112} & 6171243,069 & \multicolumn{1}{r|}{729556,105} & 6171243,079 & \multicolumn{1}{r|}{0,007} & -0,010 & & & \\ \cline{1-7}
28 & \multicolumn{1}{r|}{729550,186} & 6171241,296 & \multicolumn{1}{r|}{729550,182} & 6171241,300 & \multicolumn{1}{r|}{0,004} & -0,004 & & & \\ \cline{1-7}
29 & \multicolumn{1}{r|}{729550,305} & 6171241,07 & \multicolumn{1}{r|}{729550,310} & 6171241,064 & \multicolumn{1}{r|}{-0,005} & 0,006 & & & \\ \cline{1-7}
30 & \multicolumn{1}{r|}{729550,411} & 6171240,743 & \multicolumn{1}{r|}{729550,415} & 6171240,747 & \multicolumn{1}{r|}{-0,004} & -0,004 & & & \\ \cline{1-7}
31 & \multicolumn{1}{r|}{729538,652} & 6171236,606 & \multicolumn{1}{r|}{729538,662} & 6171236,611 & \multicolumn{1}{r|}{-0,010} & -0,005 & & & \\ \cline{1-7}
32 & \multicolumn{1}{r|}{729538,803} & 6171236,231 & \multicolumn{1}{r|}{729538,816} & 6171236,234 & \multicolumn{1}{r|}{-0,013} & -0,003 & & & \\ \cline{1-7}
33 & \multicolumn{1}{r|}{729538,879} & 6171236,044 & \multicolumn{1}{r|}{729538,889} & 6171236,045 & \multicolumn{1}{r|}{-0,010} & -0,001 & & & \\ \cline{1-7}
34 & \multicolumn{1}{r|}{729533,279} & 6171234,425 & \multicolumn{1}{r|}{729533,290} & 6171234,444 & \multicolumn{1}{r|}{-0,011} & -0,019 & & & \\ \cline{1-7}
35 & \multicolumn{1}{r|}{729533,426} & 6171234,044 & \multicolumn{1}{r|}{729533,440} & 6171234,043 & \multicolumn{1}{r|}{-0,014} & 0,001 & & & \\ \cline{1-7}
36 & \multicolumn{1}{r|}{729533,505} & 6171233,85 & \multicolumn{1}{r|}{729533,499} & 6171233,856 & \multicolumn{1}{r|}{0,006} & -0,006 & & & \\ \cline{1-7}
37 & \multicolumn{1}{r|}{729528,457} & 6171232,45 & \multicolumn{1}{r|}{729528,465} & 6171232,451 & \multicolumn{1}{r|}{-0,008} & -0,001 & & & \\ \cline{1-7}
38 & \multicolumn{1}{r|}{729528,608} & 6171232,081 & \multicolumn{1}{r|}{729528,612} & 6171232,077 & \multicolumn{1}{r|}{-0,004} & 0,004 & & & \\ \cline{1-7}
39 & \multicolumn{1}{r|}{729528,686} & 6171231,903 & \multicolumn{1}{r|}{729528,680} & 6171231,902 & \multicolumn{1}{r|}{0,006} & 0,001 & & & \\ \cline{1-7}
40 & \multicolumn{1}{r|}{729521,837} & 6171229,747 & \multicolumn{1}{r|}{729521,841} & 6171229,753 & \multicolumn{1}{r|}{-0,004} & -0,006 & & & \\ \cline{1-7}
41 & \multicolumn{1}{r|}{729521,985} & 6171229,364 & \multicolumn{1}{r|}{729521,982} & 6171229,360 & \multicolumn{1}{r|}{0,003} & 0,004 & & & \\ \cline{1-7}
42 & \multicolumn{1}{r|}{729522,063} & 6171229,185 & \multicolumn{1}{r|}{729522,063} & 6171229,184 & \multicolumn{1}{r|}{0,000} & 0,001 & & & \\ \cline{1-7}
43 & \multicolumn{1}{r|}{729517,553} & 6171227,989 & \multicolumn{1}{r|}{729517,560} & 6171227,989 & \multicolumn{1}{r|}{-0,007} & 0,000 & & & \\ \cline{1-7}
44 & \multicolumn{1}{r|}{729517,709} & 6171227,629 & \multicolumn{1}{r|}{729517,708} & 6171227,634 & \multicolumn{1}{r|}{0,001} & -0,005 & & & \\ \cline{1-7}
45 & \multicolumn{1}{r|}{729517,78} & 6171227,442 & \multicolumn{1}{r|}{729517,774} & 6171227,442 & \multicolumn{1}{r|}{0,006} & 0,000 & & & \\ \cline{1-7}
46 & \multicolumn{1}{r|}{729513,038} & 6171226,164 & \multicolumn{1}{r|}{729513,042} & 6171226,161 & \multicolumn{1}{r|}{-0,004} & 0,003 & & & \\ \cline{1-7}
47 & \multicolumn{1}{r|}{729513,198} & 6171225,787 & \multicolumn{1}{r|}{729513,201} & 6171225,791 & \multicolumn{1}{r|}{-0,003} & -0,004 & & & \\ \cline{1-7}
48 &
\multicolumn{1}{r|}{729513,265} &
6171225,606 &
\multicolumn{1}{r|}{729513,284} &
6171225,557 &
\multicolumn{1}{r|}{-0,019} &
\cellcolor[HTML]{FF0000}0,049 &
&
&
\\ \cline{1-7}
49 & \multicolumn{1}{r|}{729507,361} & 6171223,854 & \multicolumn{1}{r|}{729507,357} & 6171223,858 & \multicolumn{1}{r|}{0,004} & -0,004 & & & \\ \cline{1-7}
50 & \multicolumn{1}{r|}{729507,515} & 6171223,487 & \multicolumn{1}{r|}{729507,510} & 6171223,491 & \multicolumn{1}{r|}{0,005} & -0,004 & & & \\ \cline{1-7}
51 & \multicolumn{1}{r|}{729507,589} & 6171223,298 & \multicolumn{1}{r|}{729507,591} & 6171223,302 & \multicolumn{1}{r|}{-0,002} & -0,004 & & & \\ \cline{1-7}
52 & \multicolumn{1}{r|}{729502,897} & 6171222,041 & \multicolumn{1}{r|}{729502,891} & 6171222,026 & \multicolumn{1}{r|}{0,006} & 0,015 & & & \\ \cline{1-7}
53 & \multicolumn{1}{r|}{729503,061} & 6171221,668 & \multicolumn{1}{r|}{729503,062} & 6171221,659 & \multicolumn{1}{r|}{-0,001} & 0,009 & & & \\ \cline{1-7}
54 & \multicolumn{1}{r|}{729503,12} & 6171221,49 & \multicolumn{1}{r|}{729503,117} & 6171221,496 & \multicolumn{1}{r|}{0,003} & -0,006 & & & \\ \cline{1-7}
55 & \multicolumn{1}{r|}{729498,329} & 6171220,185 & \multicolumn{1}{r|}{729498,328} & 6171220,177 & \multicolumn{1}{r|}{0,001} & 0,008 & & & \\ \cline{1-7}
56 & \multicolumn{1}{r|}{729498,478} & 6171219,801 & \multicolumn{1}{r|}{729498,488} & 6171219,807 & \multicolumn{1}{r|}{-0,010} & -0,006 & & & \\ \cline{1-7}
57 & \multicolumn{1}{r|}{729498,557} & 6171219,624 & \multicolumn{1}{r|}{729498,552} & 6171219,632 & \multicolumn{1}{r|}{0,005} & -0,008 & & & \\ \cline{1-7}
58 & \multicolumn{1}{r|}{729584,389} & 6171255,864 & \multicolumn{1}{r|}{729584,388} & 6171255,868 & \multicolumn{1}{r|}{0,001} & -0,004 & & & \\ \cline{1-7}
59 & \multicolumn{1}{r|}{729517,339} & 6171228,518 & \multicolumn{1}{r|}{729517,338} & 6171228,516 & \multicolumn{1}{r|}{0,001} & 0,002 & & & \\ \cline{1-7}
60 & \multicolumn{1}{r|}{729543,328} & 6171239,092 & \multicolumn{1}{r|}{729543,333} & 6171239,102 & \multicolumn{1}{r|}{-0,005} & -0,010 & & & \\ \cline{1-7}
61 &
\multicolumn{1}{r|}{729558,679} &
6171245,372 &
\multicolumn{1}{r|}{729558,693} &
6171245,371 &
\multicolumn{1}{r|}{-0,014} &
0,001 &
\multirow{-61}{*}{-0,001} &
\multirow{-61}{*}{0,008} &
\multirow{-61}{*}{0,025} \\ \hline
\caption{Beregning af afsætning - undergruppe 3a}
\label{tab:afs_beregn_3a}\\
\end{longtable}```
```
| https://tex.stackexchange.com/users/297471 | Longtable won't fit page width | false | Reduce the width of your table; Im a GOM so I would have thought that that might have occured to you. From the code you show you can eliminate the initial "72" from the first and third columns --- an exercise for you the reader.
| 0 | https://tex.stackexchange.com/users/12082 | 686340 | 318,412 |
https://tex.stackexchange.com/questions/686342 | 3 | To write my Ph.D. thesis. I have utilized the figure environment to create an environment called a "plate". However, when I use the `\listoffigures` command, it includes both figures and plates in the list. Unfortunately, when I use the `\listofplates` command, it generates an error. Therefore, I require assistance in creating a command that separates plates from `\listoffigures` and generates a separate list of plates. I am using Overleaf, so the solution should be compatible with Overleaf.
```
\documentclass{article}
\usepackage{graphicx}
\newcounter{platecnt}
\newcounter{figcnt}
\newcommand{\setfigurenumber}[1]
{
\refstepcounter{#1}
\renewcommand{\thefigure}{\arabic{#1}}
}
\newenvironment{plate}[1][]{
\renewcommand{\figurename}{Plate}
\begin{figure}[#1]
}{
\end{figure}
}
\begin{document}
\listoffigures
\begin{plate}[h]
\centering
\setfigurenumber{platecnt}
\includegraphics[width=0.5\textwidth]{LOAMR1B.png}
\caption{Plate 1}
\label{plate:example}
\end{plate}
\begin{figure}
\centering
\setfigurenumber{figcnt}
\includegraphics[scale = 0.4]{LOAMR1B.png}
\caption{Figure 1}
\label{fig:my_label}
\end{figure}
\end{document}
```
| https://tex.stackexchange.com/users/245228 | I have modified figure environment to create plate environment, when I use "\listofplates" it is not working | true | I would use instead the package [`newfloat`](https://www.ctan.org/pkg/newfloat) like so:
```
\documentclass{article}
\usepackage{graphicx}
\usepackage{newfloat}
\DeclareFloatingEnvironment[
fileext=lop,
listname={List of Plates},
name=Plate,
placement=tbp,
within=none,
]{plate}
\begin{document}
\listoffigures
\bigskip
\listofplates
\newpage
\begin{plate}[h]
\centering
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{Plate 1}
\label{plate:example}
\end{plate}
\begin{figure}
\centering
\includegraphics[scale = 0.4]{example-image-a}
\caption{Figure 1}
\label{fig:my_label}
\end{figure}
\end{document}
```
| 6 | https://tex.stackexchange.com/users/273733 | 686344 | 318,413 |
https://tex.stackexchange.com/questions/686329 | 1 | I have this table that I want to fit over multiple pages, therefore `longtable`. Now it won't fit to the page width.
The table is pretty big...
The second and third column are coordinates and can't be shortened unfortunately...
```
\hline
\multicolumn{1}{|l|}{} &
\multicolumn{2}{c|}{Design} &
\multicolumn{2}{c|}{Kontrol} &
\multicolumn{2}{c|}{Differens} &
\multicolumn{1}{l|}{Gns.snit} &
\multicolumn{1}{l|}{Sigma} &
\multicolumn{1}{l|}{d\_max} \\ \hline
\endfirsthead
%
\endhead
%
\multicolumn{1}{|l|}{Pkt.} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
\multicolumn{1}{l|}{Easting} &
\multicolumn{1}{l|}{Northing} &
{\color[HTML]{202122} μ {[}m{]}} &
{\color[HTML]{202122} σ {[}m{]}} &
{[}m{]} \\ \hline
1 & \multicolumn{1}{r|}{729598,741} & 6171261,02 & \multicolumn{1}{r|}{729598,743} & 6171261,029 & \multicolumn{1}{r|}{-0,002} & -0,009 & & & \\ \cline{1-7}
2 & \multicolumn{1}{r|}{729598,897} & 6171260,664 & \multicolumn{1}{r|}{729598,909} & 6171260,669 & \multicolumn{1}{r|}{-0,012} & -0,005 & & & \\ \cline{1-7}
3 & \multicolumn{1}{r|}{729598,973} & 6171260,489 & \multicolumn{1}{r|}{729598,987} & 6171260,491 & \multicolumn{1}{r|}{-0,014} & -0,002 & & & \\ \cline{1-7}
4 & \multicolumn{1}{r|}{729591,938} & 6171258,298 & \multicolumn{1}{r|}{729591,935} & 6171258,284 & \multicolumn{1}{r|}{0,003} & 0,014 & & & \\ \cline{1-7}
5 & \multicolumn{1}{r|}{729592,087} & 6171257,93 & \multicolumn{1}{r|}{729592,087} & 6171257,926 & \multicolumn{1}{r|}{0,000} & 0,004 & & & \\ \cline{1-7}
6 & \multicolumn{1}{r|}{729592,181} & 6171257,727 & \multicolumn{1}{r|}{729592,184} & 6171257,726 & \multicolumn{1}{r|}{-0,003} & 0,001 & & & \\ \cline{1-7}
7 & \multicolumn{1}{r|}{729586,791} & 6171256,205 & \multicolumn{1}{r|}{729586,792} & 6171256,222 & \multicolumn{1}{r|}{-0,001} & -0,017 & & & \\ \cline{1-7}
8 & \multicolumn{1}{r|}{729586,931} & 6171255,84 & \multicolumn{1}{r|}{729586,935} & 6171255,830 & \multicolumn{1}{r|}{-0,004} & 0,01 & & & \\ \cline{1-7}
9 & \multicolumn{1}{r|}{729587,022} & 6171255,644 & \multicolumn{1}{r|}{729587,020} & 6171255,648 & \multicolumn{1}{r|}{0,002} & -0,004 & & & \\ \cline{1-7}
10 & \multicolumn{1}{r|}{729583,342} & 6171254,816 & \multicolumn{1}{r|}{729583,347} & 6171254,816 & \multicolumn{1}{r|}{-0,005} & 0,000 & & & \\ \cline{1-7}
11 & \multicolumn{1}{r|}{729583,489} & 6171254,435 & \multicolumn{1}{r|}{729583,499} & 6171254,431 & \multicolumn{1}{r|}{-0,010} & 0,004 & & & \\ \cline{1-7}
12 & \multicolumn{1}{r|}{729583,576} & 6171254,245 & \multicolumn{1}{r|}{729583,561} & 6171254,249 & \multicolumn{1}{r|}{0,015} & -0,004 & & & \\ \cline{1-7}
13 & \multicolumn{1}{r|}{729579,337} & 6171253,176 & \multicolumn{1}{r|}{729579,336} & 6171253,173 & \multicolumn{1}{r|}{0,001} & 0,003 & & & \\ \cline{1-7}
14 & \multicolumn{1}{r|}{729579,438} & 6171252,864 & \multicolumn{1}{r|}{729579,449} & 6171252,857 & \multicolumn{1}{r|}{-0,011} & 0,007 & & & \\ \cline{1-7}
15 & \multicolumn{1}{r|}{729579,562} & 6171252,6 & \multicolumn{1}{r|}{729579,553} & 6171252,603 & \multicolumn{1}{r|}{0,009} & -0,003 & & & \\ \cline{1-7}
16 & \multicolumn{1}{r|}{729575,731} & 6171251,687 & \multicolumn{1}{r|}{729575,729} & 6171251,683 & \multicolumn{1}{r|}{0,002} & 0,004 & & & \\ \cline{1-7}
17 & \multicolumn{1}{r|}{729575,814} & 6171251,419 & \multicolumn{1}{r|}{729575,834} & 6171251,411 & \multicolumn{1}{r|}{-0,020} & 0,008 & & & \\ \cline{1-7}
18 & \multicolumn{1}{r|}{729575,958} & 6171251,135 & \multicolumn{1}{r|}{729575,952} & 6171251,134 & \multicolumn{1}{r|}{0,006} & 0,001 & & & \\ \cline{1-7}
19 & \multicolumn{1}{r|}{729568,597} & 6171248,783 & \multicolumn{1}{r|}{729568,580} & 6171248,789 & \multicolumn{1}{r|}{0,017} & -0,006 & & & \\ \cline{1-7}
20 & \multicolumn{1}{r|}{729568,73} & 6171248,412 & \multicolumn{1}{r|}{729568,726} & 6171248,417 & \multicolumn{1}{r|}{0,004} & -0,005 & & & \\ \cline{1-7}
21 & \multicolumn{1}{r|}{729568,795} & 6171248,231 & \multicolumn{1}{r|}{729568,803} & 6171248,223 & \multicolumn{1}{r|}{-0,008} & 0,008 & & & \\ \cline{1-7}
22 & \multicolumn{1}{r|}{729562,201} & 6171246,188 & \multicolumn{1}{r|}{729562,204} & 6171246,191 & \multicolumn{1}{r|}{-0,003} & -0,003 & & & \\ \cline{1-7}
23 & \multicolumn{1}{r|}{729562,341} & 6171245,81 & \multicolumn{1}{r|}{729562,334} & 6171245,818 & \multicolumn{1}{r|}{0,007} & -0,008 & & & \\ \cline{1-7}
24 & \multicolumn{1}{r|}{729562,41} & 6171245,628 & \multicolumn{1}{r|}{729562,408} & 6171245,631 & \multicolumn{1}{r|}{0,002} & -0,003 & & & \\ \cline{1-7}
25 & \multicolumn{1}{r|}{729555,891} & 6171243,616 & \multicolumn{1}{r|}{729555,895} & 6171243,617 & \multicolumn{1}{r|}{-0,004} & -0,001 & & & \\ \cline{1-7}
26 & \multicolumn{1}{r|}{729556,006} & 6171243,377 & \multicolumn{1}{r|}{729556,003} & 6171243,377 & \multicolumn{1}{r|}{0,003} & 0,000 & & & \\ \cline{1-7}
27 & \multicolumn{1}{r|}{729556,112} & 6171243,069 & \multicolumn{1}{r|}{729556,105} & 6171243,079 & \multicolumn{1}{r|}{0,007} & -0,010 & & & \\ \cline{1-7}
28 & \multicolumn{1}{r|}{729550,186} & 6171241,296 & \multicolumn{1}{r|}{729550,182} & 6171241,300 & \multicolumn{1}{r|}{0,004} & -0,004 & & & \\ \cline{1-7}
29 & \multicolumn{1}{r|}{729550,305} & 6171241,07 & \multicolumn{1}{r|}{729550,310} & 6171241,064 & \multicolumn{1}{r|}{-0,005} & 0,006 & & & \\ \cline{1-7}
30 & \multicolumn{1}{r|}{729550,411} & 6171240,743 & \multicolumn{1}{r|}{729550,415} & 6171240,747 & \multicolumn{1}{r|}{-0,004} & -0,004 & & & \\ \cline{1-7}
31 & \multicolumn{1}{r|}{729538,652} & 6171236,606 & \multicolumn{1}{r|}{729538,662} & 6171236,611 & \multicolumn{1}{r|}{-0,010} & -0,005 & & & \\ \cline{1-7}
32 & \multicolumn{1}{r|}{729538,803} & 6171236,231 & \multicolumn{1}{r|}{729538,816} & 6171236,234 & \multicolumn{1}{r|}{-0,013} & -0,003 & & & \\ \cline{1-7}
33 & \multicolumn{1}{r|}{729538,879} & 6171236,044 & \multicolumn{1}{r|}{729538,889} & 6171236,045 & \multicolumn{1}{r|}{-0,010} & -0,001 & & & \\ \cline{1-7}
34 & \multicolumn{1}{r|}{729533,279} & 6171234,425 & \multicolumn{1}{r|}{729533,290} & 6171234,444 & \multicolumn{1}{r|}{-0,011} & -0,019 & & & \\ \cline{1-7}
35 & \multicolumn{1}{r|}{729533,426} & 6171234,044 & \multicolumn{1}{r|}{729533,440} & 6171234,043 & \multicolumn{1}{r|}{-0,014} & 0,001 & & & \\ \cline{1-7}
36 & \multicolumn{1}{r|}{729533,505} & 6171233,85 & \multicolumn{1}{r|}{729533,499} & 6171233,856 & \multicolumn{1}{r|}{0,006} & -0,006 & & & \\ \cline{1-7}
37 & \multicolumn{1}{r|}{729528,457} & 6171232,45 & \multicolumn{1}{r|}{729528,465} & 6171232,451 & \multicolumn{1}{r|}{-0,008} & -0,001 & & & \\ \cline{1-7}
38 & \multicolumn{1}{r|}{729528,608} & 6171232,081 & \multicolumn{1}{r|}{729528,612} & 6171232,077 & \multicolumn{1}{r|}{-0,004} & 0,004 & & & \\ \cline{1-7}
39 & \multicolumn{1}{r|}{729528,686} & 6171231,903 & \multicolumn{1}{r|}{729528,680} & 6171231,902 & \multicolumn{1}{r|}{0,006} & 0,001 & & & \\ \cline{1-7}
40 & \multicolumn{1}{r|}{729521,837} & 6171229,747 & \multicolumn{1}{r|}{729521,841} & 6171229,753 & \multicolumn{1}{r|}{-0,004} & -0,006 & & & \\ \cline{1-7}
41 & \multicolumn{1}{r|}{729521,985} & 6171229,364 & \multicolumn{1}{r|}{729521,982} & 6171229,360 & \multicolumn{1}{r|}{0,003} & 0,004 & & & \\ \cline{1-7}
42 & \multicolumn{1}{r|}{729522,063} & 6171229,185 & \multicolumn{1}{r|}{729522,063} & 6171229,184 & \multicolumn{1}{r|}{0,000} & 0,001 & & & \\ \cline{1-7}
43 & \multicolumn{1}{r|}{729517,553} & 6171227,989 & \multicolumn{1}{r|}{729517,560} & 6171227,989 & \multicolumn{1}{r|}{-0,007} & 0,000 & & & \\ \cline{1-7}
44 & \multicolumn{1}{r|}{729517,709} & 6171227,629 & \multicolumn{1}{r|}{729517,708} & 6171227,634 & \multicolumn{1}{r|}{0,001} & -0,005 & & & \\ \cline{1-7}
45 & \multicolumn{1}{r|}{729517,78} & 6171227,442 & \multicolumn{1}{r|}{729517,774} & 6171227,442 & \multicolumn{1}{r|}{0,006} & 0,000 & & & \\ \cline{1-7}
46 & \multicolumn{1}{r|}{729513,038} & 6171226,164 & \multicolumn{1}{r|}{729513,042} & 6171226,161 & \multicolumn{1}{r|}{-0,004} & 0,003 & & & \\ \cline{1-7}
47 & \multicolumn{1}{r|}{729513,198} & 6171225,787 & \multicolumn{1}{r|}{729513,201} & 6171225,791 & \multicolumn{1}{r|}{-0,003} & -0,004 & & & \\ \cline{1-7}
48 &
\multicolumn{1}{r|}{729513,265} &
6171225,606 &
\multicolumn{1}{r|}{729513,284} &
6171225,557 &
\multicolumn{1}{r|}{-0,019} &
\cellcolor[HTML]{FF0000}0,049 &
&
&
\\ \cline{1-7}
49 & \multicolumn{1}{r|}{729507,361} & 6171223,854 & \multicolumn{1}{r|}{729507,357} & 6171223,858 & \multicolumn{1}{r|}{0,004} & -0,004 & & & \\ \cline{1-7}
50 & \multicolumn{1}{r|}{729507,515} & 6171223,487 & \multicolumn{1}{r|}{729507,510} & 6171223,491 & \multicolumn{1}{r|}{0,005} & -0,004 & & & \\ \cline{1-7}
51 & \multicolumn{1}{r|}{729507,589} & 6171223,298 & \multicolumn{1}{r|}{729507,591} & 6171223,302 & \multicolumn{1}{r|}{-0,002} & -0,004 & & & \\ \cline{1-7}
52 & \multicolumn{1}{r|}{729502,897} & 6171222,041 & \multicolumn{1}{r|}{729502,891} & 6171222,026 & \multicolumn{1}{r|}{0,006} & 0,015 & & & \\ \cline{1-7}
53 & \multicolumn{1}{r|}{729503,061} & 6171221,668 & \multicolumn{1}{r|}{729503,062} & 6171221,659 & \multicolumn{1}{r|}{-0,001} & 0,009 & & & \\ \cline{1-7}
54 & \multicolumn{1}{r|}{729503,12} & 6171221,49 & \multicolumn{1}{r|}{729503,117} & 6171221,496 & \multicolumn{1}{r|}{0,003} & -0,006 & & & \\ \cline{1-7}
55 & \multicolumn{1}{r|}{729498,329} & 6171220,185 & \multicolumn{1}{r|}{729498,328} & 6171220,177 & \multicolumn{1}{r|}{0,001} & 0,008 & & & \\ \cline{1-7}
56 & \multicolumn{1}{r|}{729498,478} & 6171219,801 & \multicolumn{1}{r|}{729498,488} & 6171219,807 & \multicolumn{1}{r|}{-0,010} & -0,006 & & & \\ \cline{1-7}
57 & \multicolumn{1}{r|}{729498,557} & 6171219,624 & \multicolumn{1}{r|}{729498,552} & 6171219,632 & \multicolumn{1}{r|}{0,005} & -0,008 & & & \\ \cline{1-7}
58 & \multicolumn{1}{r|}{729584,389} & 6171255,864 & \multicolumn{1}{r|}{729584,388} & 6171255,868 & \multicolumn{1}{r|}{0,001} & -0,004 & & & \\ \cline{1-7}
59 & \multicolumn{1}{r|}{729517,339} & 6171228,518 & \multicolumn{1}{r|}{729517,338} & 6171228,516 & \multicolumn{1}{r|}{0,001} & 0,002 & & & \\ \cline{1-7}
60 & \multicolumn{1}{r|}{729543,328} & 6171239,092 & \multicolumn{1}{r|}{729543,333} & 6171239,102 & \multicolumn{1}{r|}{-0,005} & -0,010 & & & \\ \cline{1-7}
61 &
\multicolumn{1}{r|}{729558,679} &
6171245,372 &
\multicolumn{1}{r|}{729558,693} &
6171245,371 &
\multicolumn{1}{r|}{-0,014} &
0,001 &
\multirow{-61}{*}{-0,001} &
\multirow{-61}{*}{0,008} &
\multirow{-61}{*}{0,025} \\ \hline
\caption{Beregning af afsætning - undergruppe 3a}
\label{tab:afs_beregn_3a}\\
\end{longtable}```
```
| https://tex.stackexchange.com/users/297471 | Longtable won't fit page width | false | The material in columns 8 thru 10 appears to be identical for all rows. Hence, why not take it out of the table and decrease the column count from 10 to 7?
If that's not permissible, I suggest you typeset the `longtable` in landscape mode, as is done in the following code and associated screenshot.
I would also align the numbers on their decimal markers. And, to improve the table's overall readability, I suggest you get rid of all `\cline` directives and, instead, insert a bit of whitespace after every 5th row or so to create a better sense of visual grouping.
Last but not least, do please get rid of the pointless `\multicolumn{1}{r|}` wrappers.
```
\documentclass{article} % or some other suitable document class
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{longtable}
\usepackage{xcolor,colortbl}
% new:
\usepackage{pdflscape} % for 'landscape' environment
\usepackage{siunitx} % for 'S' col. type
\sisetup{output-decimal-marker={,}, group-digits=false}
\usepackage{booktabs} % for well-spaced horizontal rules
\begin{document}
\begin{landscape}
\begin{longtable}{@{}
S[table-format= 2.0]
*{4}{S[table-format= 6.3]}
*{3}{S[table-format=-1.3]}
*{2}{S[table-format= 1.3]}
@{}}
%% headers and footers
\toprule
{Pkt.} &
\multicolumn{2}{c}{Design} &
\multicolumn{2}{c}{Kontrol} &
\multicolumn{2}{c}{Differens} &
{Gns.snit $\mu$} &
{Sigma $\sigma$} &
{d\_max} \\
\cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(lr){6-7}
& {Easting} & {Northing}
& {Easting} & {Northing}
& {Easting} & {Northing} &
{\color[HTML]{202122} [m]} &
{\color[HTML]{202122} [m]} &
{[m]} \\
\midrule
\endhead
\bottomrule
\addlinespace
\caption{Beregning af afsætning - undergruppe 3a}
\label{tab:afs_beregn_3a}
\endlastfoot
%% body of longtable
1 & 729598,741 & 6171261,02 & 729598,743 & 6171261,029 & -0,002 & -0,009 & -0,001 & 0,008 & 0,025 \\
2 & 729598,897 & 6171260,664 & 729598,909 & 6171260,669 & -0,012 & -0,005 \\
3 & 729598,973 & 6171260,489 & 729598,987 & 6171260,491 & -0,014 & -0,002 \\
4 & 729591,938 & 6171258,298 & 729591,935 & 6171258,284 & 0,003 & 0,014 \\
5 & 729592,087 & 6171257,93 & 729592,087 & 6171257,926 & 0,000 & 0,004 \\ \addlinespace
6 & 729592,181 & 6171257,727 & 729592,184 & 6171257,726 & -0,003 & 0,001 \\
7 & 729586,791 & 6171256,205 & 729586,792 & 6171256,222 & -0,001 & -0,017 \\
8 & 729586,931 & 6171255,84 & 729586,935 & 6171255,830 & -0,004 & 0,01 \\
9 & 729587,022 & 6171255,644 & 729587,020 & 6171255,648 & 0,002 & -0,004 \\
10 & 729583,342 & 6171254,816 & 729583,347 & 6171254,816 & -0,005 & 0,000 \\ \addlinespace
11 & 729583,489 & 6171254,435 & 729583,499 & 6171254,431 & -0,010 & 0,004 \\
12 & 729583,576 & 6171254,245 & 729583,561 & 6171254,249 & 0,015 & -0,004 \\
13 & 729579,337 & 6171253,176 & 729579,336 & 6171253,173 & 0,001 & 0,003 \\
14 & 729579,438 & 6171252,864 & 729579,449 & 6171252,857 & -0,011 & 0,007 \\
15 & 729579,562 & 6171252,6 & 729579,553 & 6171252,603 & 0,009 & -0,003 \\ \addlinespace
16 & 729575,731 & 6171251,687 & 729575,729 & 6171251,683 & 0,002 & 0,004 \\
17 & 729575,814 & 6171251,419 & 729575,834 & 6171251,411 & -0,020 & 0,008 \\
18 & 729575,958 & 6171251,135 & 729575,952 & 6171251,134 & 0,006 & 0,001 \\
19 & 729568,597 & 6171248,783 & 729568,580 & 6171248,789 & 0,017 & -0,006 \\
20 & 729568,73 & 6171248,412 & 729568,726 & 6171248,417 & 0,004 & -0,005 \\ \addlinespace
21 & 729568,795 & 6171248,231 & 729568,803 & 6171248,223 & -0,008 & 0,008 \\
22 & 729562,201 & 6171246,188 & 729562,204 & 6171246,191 & -0,003 & -0,003 \\
23 & 729562,341 & 6171245,81 & 729562,334 & 6171245,818 & 0,007 & -0,008 \\
24 & 729562,41 & 6171245,628 & 729562,408 & 6171245,631 & 0,002 & -0,003 \\
25 & 729555,891 & 6171243,616 & 729555,895 & 6171243,617 & -0,004 & -0,001 \\ \addlinespace
26 & 729556,006 & 6171243,377 & 729556,003 & 6171243,377 & 0,003 & 0,000 \\
27 & 729556,112 & 6171243,069 & 729556,105 & 6171243,079 & 0,007 & -0,010 \\
28 & 729550,186 & 6171241,296 & 729550,182 & 6171241,300 & 0,004 & -0,004 \\
29 & 729550,305 & 6171241,07 & 729550,310 & 6171241,064 & -0,005 & 0,006 \\
30 & 729550,411 & 6171240,743 & 729550,415 & 6171240,747 & -0,004 & -0,004 \\ \addlinespace
31 & 729538,652 & 6171236,606 & 729538,662 & 6171236,611 & -0,010 & -0,005 \\
32 & 729538,803 & 6171236,231 & 729538,816 & 6171236,234 & -0,013 & -0,003 \\
33 & 729538,879 & 6171236,044 & 729538,889 & 6171236,045 & -0,010 & -0,001 \\
34 & 729533,279 & 6171234,425 & 729533,290 & 6171234,444 & -0,011 & -0,019 \\
35 & 729533,426 & 6171234,044 & 729533,440 & 6171234,043 & -0,014 & 0,001 \\ \addlinespace
36 & 729533,505 & 6171233,85 & 729533,499 & 6171233,856 & 0,006 & -0,006 \\
37 & 729528,457 & 6171232,45 & 729528,465 & 6171232,451 & -0,008 & -0,001 \\
38 & 729528,608 & 6171232,081 & 729528,612 & 6171232,077 & -0,004 & 0,004 \\
39 & 729528,686 & 6171231,903 & 729528,680 & 6171231,902 & 0,006 & 0,001 \\
40 & 729521,837 & 6171229,747 & 729521,841 & 6171229,753 & -0,004 & -0,006 \\ \addlinespace
41 & 729521,985 & 6171229,364 & 729521,982 & 6171229,360 & 0,003 & 0,004 \\
42 & 729522,063 & 6171229,185 & 729522,063 & 6171229,184 & 0,000 & 0,001 \\
43 & 729517,553 & 6171227,989 & 729517,560 & 6171227,989 & -0,007 & 0,000 \\
44 & 729517,709 & 6171227,629 & 729517,708 & 6171227,634 & 0,001 & -0,005 \\
45 & 729517,78 & 6171227,442 & 729517,774 & 6171227,442 & 0,006 & 0,000 \\ \addlinespace
46 & 729513,038 & 6171226,164 & 729513,042 & 6171226,161 & -0,004 & 0,003 \\
47 & 729513,198 & 6171225,787 & 729513,201 & 6171225,791 & -0,003 & -0,004 \\
48 & 729513,265 & 6171225,606 & 729513,284 & 6171225,557 & -0,019 & \cellcolor[HTML]{FF0000} 0,049 \\
49 & 729507,361 & 6171223,854 & 729507,357 & 6171223,858 & 0,004 & -0,004 \\
50 & 729507,515 & 6171223,487 & 729507,510 & 6171223,491 & 0,005 & -0,004 \\ \addlinespace
51 & 729507,589 & 6171223,298 & 729507,591 & 6171223,302 & -0,002 & -0,004 \\
52 & 729502,897 & 6171222,041 & 729502,891 & 6171222,026 & 0,006 & 0,015 \\
53 & 729503,061 & 6171221,668 & 729503,062 & 6171221,659 & -0,001 & 0,009 \\
54 & 729503,12 & 6171221,49 & 729503,117 & 6171221,496 & 0,003 & -0,006 \\
55 & 729498,329 & 6171220,185 & 729498,328 & 6171220,177 & 0,001 & 0,008 \\ \addlinespace
56 & 729498,478 & 6171219,801 & 729498,488 & 6171219,807 & -0,010 & -0,006 \\
57 & 729498,557 & 6171219,624 & 729498,552 & 6171219,632 & 0,005 & -0,008 \\
58 & 729584,389 & 6171255,864 & 729584,388 & 6171255,868 & 0,001 & -0,004 \\
59 & 729517,339 & 6171228,518 & 729517,338 & 6171228,516 & 0,001 & 0,002 \\
60 & 729543,328 & 6171239,092 & 729543,333 & 6171239,102 & -0,005 & -0,010 \\ \addlinespace
61 & 729558,679 & 6171245,372 & 729558,693 & 6171245,371 & -0,014 & 0,001 \\
\end{longtable}
\end{landscape}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/5001 | 686345 | 318,414 |
https://tex.stackexchange.com/questions/686343 | 1 | Naively I would expect that amsrefs xref entries to work correctly even if they are in an .ltb file that is external to the main .tex file. But that doesn't seem to be true.
test3.tex
```
\documentclass{amsart}
\usepackage{hyperref}
\usepackage[lite]{amsrefs}
\usepackage{amsmath,amssymb,latexsym}
\begin{document}
\title{Xyz}
\author{Dale R. Worley}
\email{worley@alum.mit.edu}
\date{\today}
\maketitle
Reference to \cite{Fom1999}.
\section{References}
\begin{biblist}[\normalsize]*{labels={alphabetic}}
\bibselect{test4}
\end{biblist}
\end{document}
```
test4.ltb
```
\documentclass{amsart}
\usepackage{hyperref}
\usepackage[lite]{amsrefs}
\usepackage{amssymb}
\newcommand{\foobar}{foobar}
\begin{document}
\title{Abc}
\author{Dale R. Worley}
\email{worley@alum.mit.edu}
\date{\today}
\maketitle
\section{Annotated bibliography}
\begin{biblist}[\normalsize]*{labels={alphabetic}}
\bib*{xref-Stan1999}{book}{
title = {Enumerative Combinatorics, Volume 2},
author = {Stanley, Richard P.},
date = {1999},
publisher = {Cambridge University Press},
address = {Cambridge},
series = {Cambridge Studies in Advanced Mathematics},
volume = {62},
}
\bib{Fom1999}{article}{
label = {Fom1999},
author = {Fomin, Sergey},
title = {Knuth Equivalence, Jeu de Taquin, and the Littlewood--Richardson Rule},
book = {
xref = {xref-Stan1999},
},
pages = {413--439},
}
\end{biblist}
\end{document}
```
This produces the message "Package amsrefs Warning: Xref 'xref-Stan1999' undefined on input line 7." regardless of how many times I re-run the processing.
test3.bbl contains only:
```
\bib{Fom1999}{article}{
label={Fom1999},
author={Fomin, Sergey},
title={Knuth Equivalence, Jeu de Taquin, and the Littlewood--Richardson Rule},
book={ xref = {xref-Stan1999}, },
pages={413--439},
}
```
It seems to me that this could be solved if all \bib\* entries were copied into the .bbl file even if the bibliography is included with \bibselect.
| https://tex.stackexchange.com/users/285657 | amsrefs does not seem to handle xref entries in an .ltb file | false | It appears the problem can be fixed by adding the following patch to the .tex document just before \begin{document}. It changes the one commented-out line in the definition of \ReadBibData@a with the line following it. The result is that all \bib\* entries are copied into the .bbl file. Also, adding this patch to the .ltb file does not seem to affect the (full) bibliography it generates.
```
\makeatletter
\def\ReadBibData@a{%
\ProvidesFile{\@filef@und}\relax
\begingroup
% \let\star@bibdef\defer@bibdef
\let\star@bibdef\copy@bibdef@a
\ReadBibLoop
\endgroup
\closein\bib@dbfile
}
\makeatother
```
| 0 | https://tex.stackexchange.com/users/285657 | 686346 | 318,415 |
https://tex.stackexchange.com/questions/686350 | 0 | I know that `tabularx` runs more than once and leads to calculations being incorrect since some calculations are done more than once.
I have LaTeX2 code with counters that works great in the tabularx environment but the same code (but more flexible with the possibility of more than one numbered list) as expl3 leads to wrong values in the variables.
Is that because counters behave differently? Or is there another reason?
Is there an easy workaround with expl3?
```
\documentclass{article}
% this code works
%\newcounter{numberedlistcounter}
%\newcommand{\resetnumberedlist}{%
% \setcounter{numberedlistcounter}{0}}
%\newcommand{\numberedlistitem}{%
% \stepcounter{numberedlistcounter}%
% \thenumberedlistcounter}
%\newcommand{\numberitemsinlist}{%
% \thenumberedlistcounter}
\ExplSyntaxOn
\NewDocumentCommand{\resetnumberedlist}{O{default}}
{
\int_gzero_new:c { g__numberedlist_counter_#1_int }
}
\resetnumberedlist
\NewDocumentCommand{\numberedlistitem}{O{default}}
{
\int_gincr:c { g__numberedlist_counter_#1_int }
\int_use:c { g__numberedlist_counter_#1_int }
}
\NewDocumentCommand{\numberitemsinlist}{O{default}}
{
\int_use:c { g__numberedlist_counter_#1_int }
}
\ExplSyntaxOff
\usepackage{tabularx}
\begin{document}
\resetnumberedlist
\begin{tabularx}{\textwidth}{l}
\numberedlistitem \\
\numberedlistitem \\
\end{tabularx}
number of items in list: \numberitemsinlist
\end{document}
```
| https://tex.stackexchange.com/users/281557 | tabularx counts expl3 more than once but LaTeX2 doesn't? | true | `tabularx` resets all latex counters (using the method used by `\include`) count registers allocated with `\newcount` or `expl3` do not take part in this mechanism.
| 3 | https://tex.stackexchange.com/users/1090 | 686352 | 318,417 |
https://tex.stackexchange.com/questions/686326 | 0 | Currently i include png/jpg files with `graphicx` package
compiling with `lualatex`, no problem, in particular no error message because of bounding box not found.
This question is about historic ways to compile because I don't want to break old code.
First question: Is it true that when compiling into pdf with any of the modern compilers
like `lualatex` with `graphicx` package command `includegraphics`,
there is no special treatment necessary to get a bounding box?
Second, I seem to have no problem with bounding box either when compiling into `dvi`.
What makes me a bit nervous is, that I remember that message.
I am sure i used package `bmpsize` and also command `ebb` to get the bounding box
and this was necessary to avoid the error message
```
cannot determine the size of the graphic
```
But I cannot remember the details.
My question is whether the issue with the bounding box is resolved by new compilers,
even if compiling into `dvi` or `xdv`.
I made a remark by hand, that `bmpsize` does not work with `xelatex`.
Is it obsolete?
May it be the case that behavior depends on the source of the jpg/png?
Are there aspects related with the dvi to pdf converters?
Are there other formats needing `bmpsize` or `ebb`?
Please feel free to mention other aspects also.
I am afraid about dropping ebb or bmpsize when there is still a use case.
In the meantime I found out that my problem is specific for texlive distribution.
Seemingly miktex neither provides `bmpsize` nor `ebb`.
| https://tex.stackexchange.com/users/60463 | How to get bounding boxes for jpg/png in latex | false | You should not often see that message in "recent" (say within last 20 years or so) releases.
Firstly pdflatex and lualatex can read the size of the png, jpg and pdf formats they can include, secondly engine/driver combinations that require a separate image size extraction program (like the old `ebb`) have mostly all been written to call `extractbb` (which is actually the same binary as the `xdvipdfmx` dvi driver. `extractbb` is in the default list of programs allowed by restricted shell escape, so you do not need to call this explicitly, latex can call it in the background if needed.
| 1 | https://tex.stackexchange.com/users/1090 | 686356 | 318,419 |
https://tex.stackexchange.com/questions/685735 | 4 | [I'm sorry if this is a duplicate. I searched and found related issues but haven't been able to solve my problem.]
I have a displayed equation and I want to replace it with another in an overlay *without affecting the surrounding text*. As shown below, I've tried six different ways, but none of them works. The surrounding text is fixed, which is what I want, in the "uncover", "uncover&overprint", and "overprint&onslide" solutions below but the equation shifts. In the other solutions, the surrounding text shifts.
I know absolute text positioning via the `textpos` package is a solution but it's tedious. I also think that giving a fake height to the less tall equation via `phantom` would work, too.
But, I thought that a simple solution would be already there, seeing that `uncover` and `overprint` are able to fix the position of the surrounding text.
```
\documentclass[14pt,aspectratio=1609]{beamer}
\begin{document}
%----
\begin{frame}{only}
Fixed text
\only<1>{\[\int f(x)\]}%
\only<2>{\[g(x)\]}%
fixed text.
\end{frame}
%---
\begin{frame}{uncover}
Fixed text
\uncover<1>{\[\int f(x)\]}%
\uncover<2>{\[g(x)\]}%
fixed text.
\end{frame}
%---
\begin{frame}{uncover \& overprint}
Fixed text
\begin{overprint}
\uncover<1>{\[\int f(x)\]}%
\uncover<2>{\[g(x)\]}%
fixed text.
\end{overprint}
\end{frame}
%----
\begin{frame}{Overprint \& onslide}
Fixed text
\begin{overprint}
\onslide<1>{\[\int f(x)\]}%
\onslide<2>{\[g(x)\]}%
\end{overprint}
fixed text.
\end{frame}
%----
\begin{frame}{Overprint, only, \& onslide}
Fixed text
\begin{overprint}
\only<1>{\[\int f(x)\]}%
\onslide<2>{\[g(x)\]}%
\end{overprint}
fixed text.
\end{frame}
%----
\begin{frame}{alt}
Fixed text
\alt<2->%
{\[g(x)\]}%
{\[\int f(x)\]}%
fixed text.
\end{frame}
\end{document}
```
| https://tex.stackexchange.com/users/44271 | Beamer: replace displayed equation in an overlay | false | Perhaps the following is over-complicated for this one example, but if you do this often you might find the following approach useful, which defines a new command (from here: <https://tex.stackexchange.com/a/63559/12212>) for this purpose, `Alt` (note the capital 'A'):
```
\documentclass[14pt,aspectratio=1609]{beamer}
% https://tex.stackexchange.com/questions/13793/beamer-alt-command-like-visible-instead-of-like-only
\usepackage{etoolbox}
\makeatletter
\newcommand<>\Alt[2]{{%
\sbox0{$\displaystyle #1$}%
\sbox1{$\displaystyle #2$}%
\alt#3%
{\rlap{\usebox0}\vphantom{\usebox1}\hphantom{\ifnum\wd0>\wd1 \usebox0\else\usebox1\fi}}%
{\rlap{\usebox1}\vphantom{\usebox0}\hphantom{\ifnum\wd0>\wd1 \usebox0\else\usebox1\fi}}%
}}
\makeatother
\begin{document}
\begin{frame}{only}
Fixed text\bigskip{}
\[\Alt<2->{g(x)}{\int f(x)}\]%
fixed text.
\end{frame}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/12212 | 686357 | 318,420 |
https://tex.stackexchange.com/questions/686341 | 0 | According to amsrdoc.pdf,
>
> when amsrefs treats nonsense.ltb as a database file, it ignores every-
> thing except for the `\bib` commands.
>
>
>
However, that is not true in this case:
test1.tex
```
\documentclass{amsart}
\usepackage{hyperref}
\usepackage[lite]{amsrefs}
\usepackage{amsmath,amssymb,latexsym}
\begin{document}
\title{Xyz}
\author{Dale R. Worley}
\email{worley@alum.mit.edu}
\date{\today}
\maketitle
\section{References}
\begin{biblist}[\normalsize]*{labels={alphabetic}}
\bibselect{test2}
\end{biblist}
\end{document}
```
test2.ltb
```
\documentclass{amsart}
\usepackage{hyperref}
\usepackage[lite]{amsrefs}
\usepackage{amssymb}
\newcommand{\foobar}{foobar}
\begin{document}
\title{Abc}
\author{Dale R. Worley}
\email{worley@alum.mit.edu}
\date{\today}
\maketitle
\section{Annotated bibliography}
\begin{biblist}[\normalsize]*{labels={alphabetic}}
\bib{Ber1986}{article}{
label = {Ber1986},
author = {Berele, Allan},
title = {A Schensted-type correspondence for the symplectic group},
journal = {J. Combin. Theory},
volume = {Ser. A 43},
date = {1986},
pages = {320--328},
%review = {\MR{***}},
doi = {10.1016/0097-3165(86)90070-1},
eprint = {https://www.sciencedirect.com/science/article/pii/0097316586900701},
note = {https://scholar.google.com/scholar?cluster=11001899118143708236},
}
\bigskip
\foobar. Topics: ***
\bigskip
\end{biblist}
\end{document}
```
In that case, LaTex objects that `\foobar` is an undefined control sequence. However, if I put "%", "xxx", or "\null" in front of the use of `\foobar`, LaTeX produces no error message.
What is going on here and how can I get amsrefs to behave as documented?
| https://tex.stackexchange.com/users/285657 | amsrefs \bibselect sometimes cares about commands in the .ltb file | false | The underlying problem is that when \bibselect is processing the .ltb file, it not only checks each line to see if it starts with \bib, it also expands the initial token on the line to see if the expansion starts with \bib. The advantage of this is that \bibselect will notice bibliography entries that are created with a macro that generates a \bib. The disadvantage is that it chokes if the .tex file doesn't define a macro which appears as the first token of a line in the .ltb.
The fix is to add the additional \ifdefined check to \ReadBibLoop@a shown below:
```
% Do not expand the token at the beginning of a line of the .ltb file
% to check if it expands into \bib if it is not defined.
\makeatletter
\long\def\ReadBibLoop@a#1#2\@nil{%
\ifx\bib#1%
\CurLine % just exec it
\else
\ifx\endinput#1%
\let\ReadBibLoop\@empty
\else
\ifdefined#1
\@xp\ReadBibLoop@b#1#2\@empty\@nil
\fi
\fi
\fi
}
\makeatother
```
| 0 | https://tex.stackexchange.com/users/285657 | 686361 | 318,422 |
https://tex.stackexchange.com/questions/522971 | 9 | I use the acm sigconf template and found a problem: from the second page of my generated PDF, at the top of every page there is a header, with conference information, title or authors' names. (e.g. `Conference’17, July 2017, Washington, DC, USA` and `John and Jean` on left and right side of first row). I want to remove all these running headers starting from second page.
I found similar question asked here: [How to remove conference information from the ACM 2017 SIGCONF template?](https://tex.stackexchange.com/questions/346292/how-to-remove-conference-information-from-the-acm-2017-sigconf-template)
However, I added the following code but they didn't work:
```
\settopmatter{printacmref=false} % Removes citation information below abstract
\renewcommand\footnotetextcopyrightpermission[1]{} % removes footnote with conference information in first column
\pagestyle{plain} % removes running headers
```
I tried `\pagestyle{empty}` and it didn't work as well.
A minimal example to show the problem is given below. (There is a lot of text I copied from website, only to extend the example to second page, in order to show the running header.)
```
\documentclass[sigconf]{acmart}
\settopmatter{printacmref=false} % Removes citation information below abstract
\renewcommand\footnotetextcopyrightpermission[1]{} % removes footnote with conference information in first column
\pagestyle{plain} % removes running headers
\usepackage{booktabs} % For formal tables
% Copyright
\setcopyright{none}
\begin{document}
\title{This is the title}
\author{John}
\email{john@gmail.com}
\author{Jean}
\email{jean@gmail.com}
% The default list of authors is too long for headers.
%\renewcommand{\shortauthors}{B. Trovato et al.}
\begin{abstract}
This is the abstract
\end{abstract}
\keywords{kw1, kw2, kw3}
\maketitle
Special Notes for Catalina
MacTeX-2019 works fine on Catalina once it is installed. When Catalina was first released to developers, Apple said that install packages for Catalina must be notarized and software installed must adopt a hardened runtime. These conditions hold for BasicTeX-2019 and Ghostscript, but not for MacTeX-2019. However, the requirements have been turned off for most betas of Catalina and seem to be still off in the release version, so MacTeX-2019 should install without trouble.
In one beta version of Catalina, perhaps beta 5, the restriction was turned on and the MacTeX-2019 install package refused to install. An experimental notarized version of MacTeX-2019 installed fine during that beta period and is available at http://tug.org/~koch/MacTeX-2019.pkg. It will replace the old MacTeX-2019 install package as soon as Apple reinstates the notarization restriction.
Installing MacTeX
After downloading, move the file MacTeX.pkg to the desktop or another convenient spot, and double click it to install. Follow the straightforward instructions. Installation on a recent Macintosh takes about ten minutes.
At the end of installation, the installer will report "Success." But sometimes, the installer puts up a dialog saying "Verifying..." and then the install hangs. In all cases known to us, rebooting the Macintosh fixes this problem. After the reboot, install again.
If other problems are reported during installation, skip to the section "Installation Errors" below.
MacTeX writes a symbolic link /Library/TeX/texbin which indirectly points to the TeX Live binary directory. Configure your GUI programs to use this link. The GUI programs we supply should automatically configure themselves. On older systems, you may have seen the link /usr/texbin which did the same thing. When Apple produced El Capitan, they modified the system so users could no longer write directly to the /usr directory and this rule remains in effect today. Therefore we replaced /usr/texbin with /Library/TeX/texbin.
MacTeX does not overwrite the TeX Distribution from the previous year. Users who run into trouble can switch to the previous distribution until the new distribution is fixed. Long ago we installed a Preference Pane which could do this switching, but this functionality is now in TeX Live Utility, which is in /Applications/TeX. To switch, use the Configure menu item "Select Default TeX Live Version."
MacTeX completely configures TeX, so after installation it is ready to use. Go to "/Applications/TeX/Docs and Spell Utilities/READ ME FIRST.pdf" and read this short document to get started. The document leads a new user through the complete process of writing and typesetting a short LaTeX document. The location "/Applications/TeX/Docs and Spell Utilities/Documents" also contains "What is installed", which lists all the components of MacTeX and their installation locations.
MacTeX installs TeX Live, which contains TeX, LaTeX, AMS-TeX, and virtually every TeX-related style file and font. TeX Live is maintained by TeX User Groups across the world. TeX Live is compiled from the same sources for all platforms: Macintosh, Windows, Linux, Unix.
MacTeX also installs Ghostscript, an open source version of Postscript, and it installs the GUI programs TeXShop, LaTeXiT, TeX Live Utility, and BibDesk. In "/Applications/TeX/Docs and Spell Utilities/Spelling" it contains an install package for cocoAspell, a spelling service which does not mark LaTeX commands as misspelled.
Updating from an Earlier MacTeX Installation
If you previously installed MacTeX, you may already have your own favorite front ends and GUI programs. Perhaps, in addition, you have Ghostscript from another source such as MacPorts or HomeBrew. In these cases, it is easy to install just the pieces you need. Download MacTeX using the earlier link. Double click to install. Several pages of information will be displayed; one of the last is shown below. Click the "Customize" button to obtain a page allowing you to select one or more of "TeX Live", "Ghostscript", "GUI Applications."
Customize
It is not necessary to remove the earlier TeX Live installation before installing a new one, and indeed we don't recommend that because MacTeX makes it easy to revert to the older version if the new version has a flaw. If you really need the extra space, other sections of these web pages explain how to remove older versions of MacTeX.
Installation Errors
Sometimes at the end of installation, the installer will report "The installation failed The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."
In almost all cases, this error is caused by a faulty download. There is an easy way to check this. Go to /Applications/Utilities and run Terminal. Type
md5
and a space. Then drag the install package icon "MacTeX.pkg" and drop it on the Terminal window. Push RETURN. Terminal will print a message and then a long item with letters and numbers. Compare this number to the md5 sum at the top of this page just under the MacTeX.pkg link. If the two numbers are different, your download was defective and you must download again. If you downloaded with a third party browser, we recommend trying Safari for the new download.
If you are having trouble downloading MacTeX, note that the download link points to a "multiplexer" site which parcels out requests to various up-to-date CTAN mirrors. Occasionally users have trouble getting the package from this multiplexer. In that case, choose a specific mirror on this mirror page.
MacTeX is a very large package. If your network is noisy, you might want to try downloading and installing BasicTeX. See Smaller Download. BasicTeX is very much smaller, and yet has most files, fonts, and programs to process TeX, so this is a rapid way to get a working TeX. BasicTeX need not be uninstalled before installing MacTeX, so once you convince yourself that our packages work, you can return to the main task of installing MacTeX. TUG strongly recommends the full MacTeX for most users, including beginners,
So far, we've given alternatives for bad downloads. But if your download has the correct md5 sum, and you still get a message that installation failed, it is time to click "MacTeX Installer Support" at the bottom of this page and ask for help.
Updating Various Pieces After Installation
TeX Live 2019 and the various GUI programs installed by MacTeX are up to date as of April, 2019. But various pieces may have been updated since then. Each of our GUI programs has a menu item called "Check for Updates." Select this item to update the program to the current version. The TeX Live command line files are updated daily. To install these updates, use TeX Live Utility in /Applications/TeX.
The program xdvi requires at least XQuartz 2.7.9. If you use this program, update XQuartz to the latest version at http://www.xquartz.org.
TeX Live DVD
Free copies of TeX Live are available over the internet, but this can be problematic if your internet connection is unstable. Members of the TeX User Group (TUG) receive a free DVD containing the full TeX Live for all common platforms. TUG also sells this DVD to others. For details, click on the TUG icon at top right.
\end{document}
```
How can I solve this problem? Any suggestion is appreciated. Thanks a lot.
| https://tex.stackexchange.com/users/102049 | How can I remove the running header from acm sigconf template? | false | This is an answer on 2023, which write after I try all these solutions and finally figure out a way to completely clean the running headers while preserve line numbers:
First, add `nonacm` to remove the conference running headers.
```
\documentclass[nonacm,sigplan,review]{acmart}
```
Then, add `[]` in `\title` command:
```
\title[]{Your Title}
```
The text in `[]` is the short title for running headers. If you set it as empty, it will show an empty running headers. So you clean up all the running headers!
It really saves me after getting 'text height exceed' violation warnings from paper submission websites :-)
`\pagestyle{plain}` also removes the running headers but also removes line numbers, which is not expected in my case.
| 1 | https://tex.stackexchange.com/users/297496 | 686363 | 318,423 |
https://tex.stackexchange.com/questions/686347 | 1 | I have an example with `bclogo` package without `\usepackage{pst-blur}` the file produce error
```
Package xkeyval Error: `blur' undefined in families `,pstricks,pst-grad,pst-n
ode,pst-coil'
```
A comment from this question [Package xkeyval error 'blur' is undefined](https://tex.stackexchange.com/questions/473607/package-xkeyval-error-blur-is-undefined) suggests to add `pst-blur` package, I followed the proposal and I got in trouble with a long compilation time
```
\documentclass{article}
\usepackage{bclogo}
\usepackage{pst-blur}
\begin{document}
\begin{bclogo}
test
\end{bclogo}
\end{document}
```
I get repetetive warnings in the terminal
```
%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
```
**log file**
```
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex 2023.5.17) 21 MAY 2023 20:13
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test6
(./test6.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-05-15>
(c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c@part=\count181
\c@section=\count182
\c@subsection=\count183
\c@subsubsection=\count184
\c@paragraph=\count185
\c@subparagraph=\count186
\c@figure=\count187
\c@table=\count188
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(c:/texlive/2023/texmf-dist/tex/latex/bclogo/bclogo.sty
Package: bclogo 2016/01/10 v3.1
(c:/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count189
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(c:/texlive/2023/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2022/04/13 v1.1d Standard LaTeX ifthen package (DPC)
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 107.
(c:/texlive/2023/texmf-dist/tex/latex/graphics-def/xetex.def
File: xetex.def 2022/09/22 v5.0n Graphics/color driver for xetex
))
\Gin@req@height=\dimen141
\Gin@req@width=\dimen142
)
\bc@invboxh=\skip50
\bc@invboxd=\skip51
\bc@titleLength=\skip52
\logowidth=\skip53
(c:/texlive/2023/texmf-dist/tex/latex/pstricks/pstricks.sty
Package: pstricks 2022/19/23 v0.72 LaTeX wrapper for `PSTricks' (RN,HV)
(c:/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)
(c:/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: xetex.def on input line 227.
(c:/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353.
Package xcolor Info: Model `RGB' extended on input line 1369.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376.
)
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
)
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks.tex
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)
\pstFP@xs=\count190
\pstFP@xia=\count191
\pstFP@xib=\count192
\pstFP@xfa=\count193
\pstFP@xfb=\count194
\pstFP@rega=\count195
\pstFP@regb=\count196
\pstFP@regs=\count197
\pstFP@times=\count198
)
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks18
\pgfutil@tempdima=\dimen143
\pgfutil@tempdimb=\dimen144
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box51
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(c:/texlive/2023/texmf-dist/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
))
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks19
\pgfkeys@temptoks=\toks20
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.co
de.tex
\pgfkeys@tmptoks=\toks21
))) (c:/texlive/2023/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex
\pgf@x=\dimen145
\pgf@xa=\dimen146
\pgf@xb=\dimen147
\pgf@xc=\dimen148
\pgf@y=\dimen149
\pgf@ya=\dimen150
\pgf@yb=\dimen151
\pgf@yc=\dimen152
\c@pgf@counta=\count199
\c@pgf@countb=\count266
\c@pgf@countc=\count267
\c@pgf@countd=\count268
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen153
\pgfmath@count=\count269
\pgfmath@box=\box52
\pgfmath@toks=\toks22
\pgfmath@stack@operand=\toks23
\pgfmath@stack@operation=\toks24
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm
etics.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count270
)))
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
\pgffor@iter=\dimen154
\pgffor@skip=\dimen155
\pgffor@stack=\toks25
\pgffor@toks=\toks26
))
\psLoopIndex=\count271
`PSTricks' v3.19 <2023/04/30> (tvz,hv)
\pst@dima=\dimen156
\pst@dimb=\dimen157
\pst@dimc=\dimen158
\pst@dimd=\dimen159
\pst@dimg=\dimen160
\pst@dimh=\dimen161
\pst@dimm=\dimen162
\pst@dimn=\dimen163
\pst@dimo=\dimen164
\pst@dimp=\dimen165
\pst@hbox=\box53
\pst@ibox=\box54
\pst@boxg=\box55
\pst@cnta=\count272
\pst@cntb=\count273
\pst@cntc=\count274
\pst@cntd=\count275
\pst@cntg=\count276
\pst@cnth=\count277
\pst@cntm=\count278
\pst@cntn=\count279
\pst@cnto=\count280
\pst@cntp=\count281
\@zero=\count282
\pst@toks=\toks27
--- We are running latex or xelatex ---
(c:/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg))
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-color.tex)
\psunit=\dimen166
\psxunit=\dimen167
\psyunit=\dimen168
\pst@C@@rType=\count283
\pslinewidth=\dimen169
\psk@startLW=\dimen170
\psk@endLW=\dimen171
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex
\pshooklength=\dimen172
\pshookwidth=\dimen173
)
\pst@customdefs=\toks28
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-dots.tex)
\pslinearc=\dimen174
\pst@symbolStep=\dimen175
\pst@symbolWidth=\dimen176
\pst@symbolLinewidth=\dimen177
\everypsbox=\toks29
\psframesep=\dimen178
\pslabelsep=\dimen179
\sh@wgridXunit=\dimen180
\sh@wgridYunit=\dimen181
\pst@shift=\dimen182
\ps@imagectr=\count284
(c:/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg
Using PSTricks configuration for LaTeX+dvipdfmx
)))
File: pstricks.tex 2023/04/30 v3.19 `PSTricks' (tvz,hv)
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
File: pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
>>> Loading XeTeX special macros
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-xetex.def))
(c:/texlive/2023/texmf-dist/tex/latex/pst-grad/pst-grad.sty
Package: pst-grad 2004/07/15 package wrapper for pst-grad.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv))
File: pst-grad.tex 2006/11/27 1.06 `pst-grad' (tvz)
)
(c:/texlive/2023/texmf-dist/tex/latex/pst-coil/pst-coil.sty
Package: pst-coil 2010/02/01 package wrapper for pst-coil.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-coil/pst-coil.tex
v1.06, 2006/11/27
(c:/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.43, 2022/01/31
\psrow=\count285
\pscol=\count286
\psmatrixcnt=\count287
\psrowsep=\skip54
\pscolsep=\skip55
\pst@args=\count288
\num@pts=\count289
\pst@argcnt=\count290
))
File: pst-coil.tex 2015/05/13 v1.07 `PST-coil' (tvz,hv)
)
(c:/texlive/2023/texmf-dist/tex/latex/mdframed/mdframed.sty
Package: mdframed 2013/07/01 1.9b: mdframed
(c:/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
(c:/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(c:/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
))
(c:/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(c:/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2023-05-15 L3 programming layer (loader)
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
File: l3backend-xetex.def 2023-04-19 L3 backend support: XeTeX
\g__graphics_track_int=\count291
\l__pdf_internal_box=\box56
\g__pdf_backend_object_int=\count292
\g__pdf_backend_annotation_int=\count293
\g__pdf_backend_link_int=\count294
))
Package: xparse 2023-02-02 L3 Experimental document command parser
)
(c:/texlive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count295
)
(c:/texlive/2023/texmf-dist/tex/latex/zref/zref-abspage.sty
Package: zref-abspage 2022-04-07 v2.34 Module abspage for zref (HO)
(c:/texlive/2023/texmf-dist/tex/latex/zref/zref-base.sty
Package: zref-base 2022-04-07 v2.34 Module base for zref (HO)
(c:/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
(c:/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
)
(c:/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode not found.
)
(c:/texlive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
(c:/texlive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
)
Package zref Info: New property list: main on input line 767.
Package zref Info: New property: default on input line 768.
Package zref Info: New property: page on input line 769.
)
(c:/texlive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty
Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
)
\c@abspage=\count296
Package zref Info: New property: abspage on input line 65.
)
(c:/texlive/2023/texmf-dist/tex/latex/needspace/needspace.sty
Package: needspace 2010/09/12 v1.3d reserve vertical space
)
\mdf@templength=\skip56
\c@mdf@globalstyle@cnt=\count297
\mdf@skipabove@length=\skip57
\mdf@skipbelow@length=\skip58
\mdf@leftmargin@length=\skip59
\mdf@rightmargin@length=\skip60
\mdf@innerleftmargin@length=\skip61
\mdf@innerrightmargin@length=\skip62
\mdf@innertopmargin@length=\skip63
\mdf@innerbottommargin@length=\skip64
\mdf@splittopskip@length=\skip65
\mdf@splitbottomskip@length=\skip66
\mdf@outermargin@length=\skip67
\mdf@innermargin@length=\skip68
\mdf@linewidth@length=\skip69
\mdf@innerlinewidth@length=\skip70
\mdf@middlelinewidth@length=\skip71
\mdf@outerlinewidth@length=\skip72
\mdf@roundcorner@length=\skip73
\mdf@footenotedistance@length=\skip74
\mdf@userdefinedwidth@length=\skip75
\mdf@needspace@length=\skip76
\mdf@frametitleaboveskip@length=\skip77
\mdf@frametitlebelowskip@length=\skip78
\mdf@frametitlerulewidth@length=\skip79
\mdf@frametitleleftmargin@length=\skip80
\mdf@frametitlerightmargin@length=\skip81
\mdf@shadowsize@length=\skip82
\mdf@extratopheight@length=\skip83
\mdf@subtitleabovelinewidth@length=\skip84
\mdf@subtitlebelowlinewidth@length=\skip85
\mdf@subtitleaboveskip@length=\skip86
\mdf@subtitlebelowskip@length=\skip87
\mdf@subtitleinneraboveskip@length=\skip88
\mdf@subtitleinnerbelowskip@length=\skip89
\mdf@subsubtitleabovelinewidth@length=\skip90
\mdf@subsubtitlebelowlinewidth@length=\skip91
\mdf@subsubtitleaboveskip@length=\skip92
\mdf@subsubtitlebelowskip@length=\skip93
\mdf@subsubtitleinneraboveskip@length=\skip94
\mdf@subsubtitleinnerbelowskip@length=\skip95
(c:/texlive/2023/texmf-dist/tex/latex/pst-node/pst-node.sty
Package: pst-node 2012/09/18 v1.01 LaTeX wrapper for `pst-node' (HV)
Package: pst-node 2010/04/22 package wrapper for pst-node.tex
(c:/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex)
File: pst-node.tex 2015/05/13 1.07 `pst-node' (tvz,hv)
)
(c:/texlive/2023/texmf-dist/tex/latex/mdframed/md-frame-2.mdf
File: md-frame-2.mdf 2013/07/01\ 1.9b: md-frame-2
)
\mdf@frametitlebox=\box57
\mdf@footnotebox=\box58
\mdf@splitbox@one=\box59
\mdf@splitbox@two=\box60
\mdf@splitbox@save=\box61
\mdfsplitboxwidth=\skip96
\mdfsplitboxtotalwidth=\skip97
\mdfsplitboxheight=\skip98
\mdfsplitboxdepth=\skip99
\mdfsplitboxtotalheight=\skip100
\mdfframetitleboxwidth=\skip101
\mdfframetitleboxtotalwidth=\skip102
\mdfframetitleboxheight=\skip103
\mdfframetitleboxdepth=\skip104
\mdfframetitleboxtotalheight=\skip105
\mdffootnoteboxwidth=\skip106
\mdffootnoteboxtotalwidth=\skip107
\mdffootnoteboxheight=\skip108
\mdffootnoteboxdepth=\skip109
\mdffootnoteboxtotalheight=\skip110
\mdftotallinewidth=\skip111
\mdfboundingboxwidth=\skip112
\mdfboundingboxtotalwidth=\skip113
\mdfboundingboxheight=\skip114
\mdfboundingboxdepth=\skip115
\mdfboundingboxtotalheight=\skip116
\mdf@freevspace@length=\skip117
\mdf@horizontalwidthofbox@length=\skip118
\mdf@verticalmarginwhole@length=\skip119
\mdf@horizontalspaceofbox=\skip120
\mdfsubtitleheight=\skip121
\mdfsubsubtitleheight=\skip122
\c@mdfcountframes=\count298
****** mdframed patching \endmdf@trivlist
****** -- success******
\mdf@envdepth=\count299
\c@mdf@env@i=\count300
\c@mdf@env@ii=\count301
\c@mdf@zref@counter=\count302
Package zref Info: New property: mdf@pagevalue on input line 895.
)
(c:/texlive/2023/texmf-dist/tex/generic/iftex/ifpdf.sty
Package: ifpdf 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.
)
Invalid UTF-8 byte or sequence at line 164 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 164 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 201 replaced by U+FFFD.
\c@bclogocompteur=\count303
\bcval@epBarre=\skip123
\bcval@framesep=\skip124
\bcval@tailleOndu=\skip125
\bcval@borderWidth=\skip126
Invalid UTF-8 byte or sequence at line 216 replaced by U+FFFD.
\bcval@margeG=\skip127
Invalid UTF-8 byte or sequence at line 217 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 217 replaced by U+FFFD.
\bcval@margeD=\skip128
\bc@envbox=\box62
Invalid UTF-8 byte or sequence at line 334 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
)
(c:/texlive/2023/texmf-dist/tex/latex/pst-blur/pst-blur.sty
Package: pst-blur 2005/09/08 package wrapper for pst-blur.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-blur/pst-blur.tex
v2.0, 2005/09/08)
File: pst-blur.tex 2005/09/08 v2.0 `PST-blur' (hv)
) (./test6.aux)
\openout1 = `test6.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 5
.
(c:/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2022/07/10 v2.5l Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 8.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 8.
File: bc-fleur.mps Graphic file (type mps)
<bc-fleur.mps>
Package mdframed Info: Not enough space on this page on input line 9.
[1
] (./test6.aux) )
Here is how much of TeX's memory you used:
11611 strings out of 478267
216818 string characters out of 5839314
1846476 words of memory out of 5000000
31498 multiletter control sequences out of 15000+600000
512319 words of font info for 36 fonts, out of 8000000 for 9000
319 hyphenation exceptions out of 8191
90i,9n,91p,639b,996s stack positions out of 10000i,1000n,20000p,200000b,200000s
Output written on test6.pdf (1 page).
```
| https://tex.stackexchange.com/users/54817 | Issue long time of compiling with bclogo env combined with pst-blur | false | in the directory
```
/.../texmf-dist/dvipdfmx
```
you have two files
```
-rw-r--r-- 1 voss staff 994 21 Nov 2021 dvipdfmx-unsafe.cfg
-rw-r--r-- 1 voss staff 8685 20 Mär 13:19 dvipdfmx.cfg
```
the "unsafe" file has only one important line. If you replace the one
of `dvipdfmx.cfg` with the one from `dvipdfmx-unsafe.cfg` then you do not need the special argument in the comment from @Udi Fogiel and you can call xelatex as usual. However, if `dvipdfmx.cfg` will be updated by the system you have to do the changes again.
| 1 | https://tex.stackexchange.com/users/187802 | 686365 | 318,424 |
https://tex.stackexchange.com/questions/686358 | 1 | The Problem
-----------
I'm creating a document using the [`acronym` package](https://ctan.org/pkg/acronym). I want to have my uses of `\ac`, `\Ac`, `\iac`, etc. link to the corresponding entry in my list of acronyms (created using the `acronym` environment), but I do *not* want the acronyms in the list to be hyperlinks to their first uses. How do I do this?
MWE
---
```
\documentclass{minimal}
\usepackage{hyperref}
\usepackage{acronym}
\begin{document}
The \ac{QBF} jumps over \iac{LD}. The \ac{LD} jumps over \iac{QBF}.
\begin{acronym}
\acro{QBF}{quick brown fox}
\acro{LD}{lazy dog} \acrodefindefinite{LD}{an}{a}
\end{acronym}
\end{document}
```
### Desired Output
>
> Note that the hyperlinks in the "Desired Output" section *do not actually go anywhere*. They are intended to demonstrate where hyperlinks appear in the outputted document.
>
>
> **Description:** In the text of the document, all uses of the acronym link to the corresponding entry in the list of acronyms. In the list of acronyms (within the `acronym` environment), the entries are not hyperlinks.
>
>
>
The quick brown fox ([QBF](https://null.invalid)) jumps over a lazy dog ([LD](https://null.invalid)). The [LD](https://null.invalid) jumps over a [QBF](https://null.invalid).
**QBF** quick brown fox
**LD** lazy dog
### Actual Output
>
> Note that the hyperlinks in the "Actual Output" section *do not actually go anywhere*. They are intended to demonstrate where hyperlinks appear in the outputted document.
>
>
> **Description:** In the text of the document, all uses of the acronym link to the corresponding entry in the list of acronyms. In the list of acronyms (within the `acronym` environment), each entry links back to the first use of its respective acronym in the document.
>
>
>
The quick brown fox ([QBF](https://null.invalid)) jumps over a lazy dog ([LD](https://null.invalid)). The [LD](https://null.invalid) jumps over a [QBF](https://null.invalid).
[**QBF** quick brown fox](https://null.invalid)
[**LD** lazy dog](https://null.invalid)
What I tried
------------
Based on section 4.2 of [the `acronym` package documentation](http://mirrors.ctan.org/macros/latex/contrib/acronym/acronym.pdf), which discusses the implementation of the package, I was hopeful that this would solve the problem, but it didn't work.
```
\documentclass{minimal}
\usepackage{hyperref}
\usepackage{acronym}
\begin{document}
The \ac{QBF} jumps over \iac{LD}. The \ac{LD} jumps over \iac{QBF}.
{\makeatletter\AC@nohyperlinkstrue\makeatother
\begin{acronym}
\acro{QBF}{quick brown fox}
\acro{LD}{lazy dog} \acrodefindefinite{LD}{an}{a}
\end{acronym}
}
\end{document}
```
| https://tex.stackexchange.com/users/272916 | `acronym` package: link uses of acronyms to the list of acronyms without linking list entries to first uses of acronyms | true | First of all, `\acrodefindefinite` has *three mandatory arguments*, e.g., `\acrodefindefinite{LD}{an}{a}`. Because you are using only two argument, your examples result in errors. Please, see the manual for more information how to use it.
To not have links from the list of acronyms to the usage of the acronyms, you can locally redefine `\AC@hyperref` *inside* the environment. To do so, either add
```
\makeatletter
\def\AC@hyperref[#1]#2{#2}
\makeatother
```
immediately after `\begin{acronym}` or use the generic LaTeX hook mechanism (see `lthooks-doc.pdf` for more information):
```
\documentclass{article}
\usepackage{hyperref}
\usepackage{acronym}
\makeatletter
\AddToHook{env/acronym/begin}{\def\AC@hyperref[#1]#2{#2}}
\makeatother
\begin{document}
The \ac{QBF} jumps over \iac{LD}. The \ac{LD} jumps over \iac{QBF}.
\section*{List of acronyms}
\begin{acronym}
\acro{QBF}{quick brown fox}
\acro{LD}{lazy dog}
\end{acronym}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/277964 | 686370 | 318,425 |
https://tex.stackexchange.com/questions/686349 | 1 | I have used `\usepackage[nottoc, other]{tocbibind}` and then `\renewcommand{tocbibname}{\centering REFERENCES}` to center the heading. It puts the heading in the center within the body but then ruins the alignment in ToC.
Is there any other way to do it without affecting the alignment of ToC. And I would also like change the heading from "Bibliography" to "REFERENCE".
Here's the code I've used
```
\documentclass[lettersize,10pt]{article}
\usepackage[nottoc,other]{tocbibind}
\renewcommand{\contentsname}{\centering CONTENTS}
\renewcommand{\tocbibname}{\centering REFERENCES}
\begin{document}
\tableofcontents
\bibliographystyle{unsrtnat}
\newpage
\section{ABC}
\section{XYZ}
\newpage
\bibliography{ref}
\end{document}
```
| https://tex.stackexchange.com/users/294946 | How to center the heading of bibliography without affecting the alignment of it in ToC | false | You can either use package `titlesec` to redefine the formatting of not numbered sections or patch `tocbibind` to center all not numbered headings with ToC entries, as shown in the following example:
```
\documentclass{article}
\usepackage[nottoc,other]{tocbibind}
\renewcommand{\contentsname}{CONTENTS}
\renewcommand{\tocbibname}{REFERENCES}
\makeatletter
\renewcommand*{\toc@section}[2]{%
\@nameuse{#1}*{\centering #2\prw@mkboth{#2}}%
\addcontentsline{toc}{#1}{#2}%
}
% Following is only needed for report or book and without option other but not with article (as used in this example).
\renewcommand{\toc@chapter}[1]{%
\chapter*{\centering #1}\prw@mkboth{#1}%
\addcontentsline{toc}{chapter}{#1}%
}
\makeatother
\bibliographystyle{unsrtnat}
\begin{document}
\tableofcontents
\section{ABC}
\cite{aksin}
\section{XYZ}
\bibliography{biblatex-examples}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/277964 | 686372 | 318,427 |
https://tex.stackexchange.com/questions/686347 | 1 | I have an example with `bclogo` package without `\usepackage{pst-blur}` the file produce error
```
Package xkeyval Error: `blur' undefined in families `,pstricks,pst-grad,pst-n
ode,pst-coil'
```
A comment from this question [Package xkeyval error 'blur' is undefined](https://tex.stackexchange.com/questions/473607/package-xkeyval-error-blur-is-undefined) suggests to add `pst-blur` package, I followed the proposal and I got in trouble with a long compilation time
```
\documentclass{article}
\usepackage{bclogo}
\usepackage{pst-blur}
\begin{document}
\begin{bclogo}
test
\end{bclogo}
\end{document}
```
I get repetetive warnings in the terminal
```
%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
```
**log file**
```
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex 2023.5.17) 21 MAY 2023 20:13
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test6
(./test6.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-05-15>
(c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c@part=\count181
\c@section=\count182
\c@subsection=\count183
\c@subsubsection=\count184
\c@paragraph=\count185
\c@subparagraph=\count186
\c@figure=\count187
\c@table=\count188
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(c:/texlive/2023/texmf-dist/tex/latex/bclogo/bclogo.sty
Package: bclogo 2016/01/10 v3.1
(c:/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count189
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(c:/texlive/2023/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2022/04/13 v1.1d Standard LaTeX ifthen package (DPC)
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR)
(c:/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 107.
(c:/texlive/2023/texmf-dist/tex/latex/graphics-def/xetex.def
File: xetex.def 2022/09/22 v5.0n Graphics/color driver for xetex
))
\Gin@req@height=\dimen141
\Gin@req@width=\dimen142
)
\bc@invboxh=\skip50
\bc@invboxd=\skip51
\bc@titleLength=\skip52
\logowidth=\skip53
(c:/texlive/2023/texmf-dist/tex/latex/pstricks/pstricks.sty
Package: pstricks 2022/19/23 v0.72 LaTeX wrapper for `PSTricks' (RN,HV)
(c:/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)
(c:/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK)
(c:/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: xetex.def on input line 227.
(c:/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353.
Package xcolor Info: Model `RGB' extended on input line 1369.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376.
)
(c:/texlive/2023/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
)
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks.tex
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)
\pstFP@xs=\count190
\pstFP@xia=\count191
\pstFP@xib=\count192
\pstFP@xfa=\count193
\pstFP@xfb=\count194
\pstFP@rega=\count195
\pstFP@regb=\count196
\pstFP@regs=\count197
\pstFP@times=\count198
)
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks18
\pgfutil@tempdima=\dimen143
\pgfutil@tempdimb=\dimen144
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box51
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(c:/texlive/2023/texmf-dist/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
))
(c:/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks19
\pgfkeys@temptoks=\toks20
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.co
de.tex
\pgfkeys@tmptoks=\toks21
))) (c:/texlive/2023/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex
\pgf@x=\dimen145
\pgf@xa=\dimen146
\pgf@xb=\dimen147
\pgf@xc=\dimen148
\pgf@y=\dimen149
\pgf@ya=\dimen150
\pgf@yb=\dimen151
\pgf@yc=\dimen152
\c@pgf@counta=\count199
\c@pgf@countb=\count266
\c@pgf@countc=\count267
\c@pgf@countd=\count268
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen153
\pgfmath@count=\count269
\pgfmath@box=\box52
\pgfmath@toks=\toks22
\pgfmath@stack@operand=\toks23
\pgfmath@stack@operation=\toks24
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm
etics.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(c:/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count270
)))
(c:/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
\pgffor@iter=\dimen154
\pgffor@skip=\dimen155
\pgffor@stack=\toks25
\pgffor@toks=\toks26
))
\psLoopIndex=\count271
`PSTricks' v3.19 <2023/04/30> (tvz,hv)
\pst@dima=\dimen156
\pst@dimb=\dimen157
\pst@dimc=\dimen158
\pst@dimd=\dimen159
\pst@dimg=\dimen160
\pst@dimh=\dimen161
\pst@dimm=\dimen162
\pst@dimn=\dimen163
\pst@dimo=\dimen164
\pst@dimp=\dimen165
\pst@hbox=\box53
\pst@ibox=\box54
\pst@boxg=\box55
\pst@cnta=\count272
\pst@cntb=\count273
\pst@cntc=\count274
\pst@cntd=\count275
\pst@cntg=\count276
\pst@cnth=\count277
\pst@cntm=\count278
\pst@cntn=\count279
\pst@cnto=\count280
\pst@cntp=\count281
\@zero=\count282
\pst@toks=\toks27
--- We are running latex or xelatex ---
(c:/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg))
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-color.tex)
\psunit=\dimen166
\psxunit=\dimen167
\psyunit=\dimen168
\pst@C@@rType=\count283
\pslinewidth=\dimen169
\psk@startLW=\dimen170
\psk@endLW=\dimen171
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex
\pshooklength=\dimen172
\pshookwidth=\dimen173
)
\pst@customdefs=\toks28
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-dots.tex)
\pslinearc=\dimen174
\pst@symbolStep=\dimen175
\pst@symbolWidth=\dimen176
\pst@symbolLinewidth=\dimen177
\everypsbox=\toks29
\psframesep=\dimen178
\pslabelsep=\dimen179
\sh@wgridXunit=\dimen180
\sh@wgridYunit=\dimen181
\pst@shift=\dimen182
\ps@imagectr=\count284
(c:/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg
Using PSTricks configuration for LaTeX+dvipdfmx
)))
File: pstricks.tex 2023/04/30 v3.19 `PSTricks' (tvz,hv)
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
File: pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
>>> Loading XeTeX special macros
(c:/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-xetex.def))
(c:/texlive/2023/texmf-dist/tex/latex/pst-grad/pst-grad.sty
Package: pst-grad 2004/07/15 package wrapper for pst-grad.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv))
File: pst-grad.tex 2006/11/27 1.06 `pst-grad' (tvz)
)
(c:/texlive/2023/texmf-dist/tex/latex/pst-coil/pst-coil.sty
Package: pst-coil 2010/02/01 package wrapper for pst-coil.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-coil/pst-coil.tex
v1.06, 2006/11/27
(c:/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.43, 2022/01/31
\psrow=\count285
\pscol=\count286
\psmatrixcnt=\count287
\psrowsep=\skip54
\pscolsep=\skip55
\pst@args=\count288
\num@pts=\count289
\pst@argcnt=\count290
))
File: pst-coil.tex 2015/05/13 v1.07 `PST-coil' (tvz,hv)
)
(c:/texlive/2023/texmf-dist/tex/latex/mdframed/mdframed.sty
Package: mdframed 2013/07/01 1.9b: mdframed
(c:/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
(c:/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(c:/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
))
(c:/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(c:/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2023-05-15 L3 programming layer (loader)
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
File: l3backend-xetex.def 2023-04-19 L3 backend support: XeTeX
\g__graphics_track_int=\count291
\l__pdf_internal_box=\box56
\g__pdf_backend_object_int=\count292
\g__pdf_backend_annotation_int=\count293
\g__pdf_backend_link_int=\count294
))
Package: xparse 2023-02-02 L3 Experimental document command parser
)
(c:/texlive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count295
)
(c:/texlive/2023/texmf-dist/tex/latex/zref/zref-abspage.sty
Package: zref-abspage 2022-04-07 v2.34 Module abspage for zref (HO)
(c:/texlive/2023/texmf-dist/tex/latex/zref/zref-base.sty
Package: zref-base 2022-04-07 v2.34 Module base for zref (HO)
(c:/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
(c:/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
)
(c:/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode not found.
)
(c:/texlive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
(c:/texlive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
)
Package zref Info: New property list: main on input line 767.
Package zref Info: New property: default on input line 768.
Package zref Info: New property: page on input line 769.
)
(c:/texlive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty
Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
)
\c@abspage=\count296
Package zref Info: New property: abspage on input line 65.
)
(c:/texlive/2023/texmf-dist/tex/latex/needspace/needspace.sty
Package: needspace 2010/09/12 v1.3d reserve vertical space
)
\mdf@templength=\skip56
\c@mdf@globalstyle@cnt=\count297
\mdf@skipabove@length=\skip57
\mdf@skipbelow@length=\skip58
\mdf@leftmargin@length=\skip59
\mdf@rightmargin@length=\skip60
\mdf@innerleftmargin@length=\skip61
\mdf@innerrightmargin@length=\skip62
\mdf@innertopmargin@length=\skip63
\mdf@innerbottommargin@length=\skip64
\mdf@splittopskip@length=\skip65
\mdf@splitbottomskip@length=\skip66
\mdf@outermargin@length=\skip67
\mdf@innermargin@length=\skip68
\mdf@linewidth@length=\skip69
\mdf@innerlinewidth@length=\skip70
\mdf@middlelinewidth@length=\skip71
\mdf@outerlinewidth@length=\skip72
\mdf@roundcorner@length=\skip73
\mdf@footenotedistance@length=\skip74
\mdf@userdefinedwidth@length=\skip75
\mdf@needspace@length=\skip76
\mdf@frametitleaboveskip@length=\skip77
\mdf@frametitlebelowskip@length=\skip78
\mdf@frametitlerulewidth@length=\skip79
\mdf@frametitleleftmargin@length=\skip80
\mdf@frametitlerightmargin@length=\skip81
\mdf@shadowsize@length=\skip82
\mdf@extratopheight@length=\skip83
\mdf@subtitleabovelinewidth@length=\skip84
\mdf@subtitlebelowlinewidth@length=\skip85
\mdf@subtitleaboveskip@length=\skip86
\mdf@subtitlebelowskip@length=\skip87
\mdf@subtitleinneraboveskip@length=\skip88
\mdf@subtitleinnerbelowskip@length=\skip89
\mdf@subsubtitleabovelinewidth@length=\skip90
\mdf@subsubtitlebelowlinewidth@length=\skip91
\mdf@subsubtitleaboveskip@length=\skip92
\mdf@subsubtitlebelowskip@length=\skip93
\mdf@subsubtitleinneraboveskip@length=\skip94
\mdf@subsubtitleinnerbelowskip@length=\skip95
(c:/texlive/2023/texmf-dist/tex/latex/pst-node/pst-node.sty
Package: pst-node 2012/09/18 v1.01 LaTeX wrapper for `pst-node' (HV)
Package: pst-node 2010/04/22 package wrapper for pst-node.tex
(c:/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex)
File: pst-node.tex 2015/05/13 1.07 `pst-node' (tvz,hv)
)
(c:/texlive/2023/texmf-dist/tex/latex/mdframed/md-frame-2.mdf
File: md-frame-2.mdf 2013/07/01\ 1.9b: md-frame-2
)
\mdf@frametitlebox=\box57
\mdf@footnotebox=\box58
\mdf@splitbox@one=\box59
\mdf@splitbox@two=\box60
\mdf@splitbox@save=\box61
\mdfsplitboxwidth=\skip96
\mdfsplitboxtotalwidth=\skip97
\mdfsplitboxheight=\skip98
\mdfsplitboxdepth=\skip99
\mdfsplitboxtotalheight=\skip100
\mdfframetitleboxwidth=\skip101
\mdfframetitleboxtotalwidth=\skip102
\mdfframetitleboxheight=\skip103
\mdfframetitleboxdepth=\skip104
\mdfframetitleboxtotalheight=\skip105
\mdffootnoteboxwidth=\skip106
\mdffootnoteboxtotalwidth=\skip107
\mdffootnoteboxheight=\skip108
\mdffootnoteboxdepth=\skip109
\mdffootnoteboxtotalheight=\skip110
\mdftotallinewidth=\skip111
\mdfboundingboxwidth=\skip112
\mdfboundingboxtotalwidth=\skip113
\mdfboundingboxheight=\skip114
\mdfboundingboxdepth=\skip115
\mdfboundingboxtotalheight=\skip116
\mdf@freevspace@length=\skip117
\mdf@horizontalwidthofbox@length=\skip118
\mdf@verticalmarginwhole@length=\skip119
\mdf@horizontalspaceofbox=\skip120
\mdfsubtitleheight=\skip121
\mdfsubsubtitleheight=\skip122
\c@mdfcountframes=\count298
****** mdframed patching \endmdf@trivlist
****** -- success******
\mdf@envdepth=\count299
\c@mdf@env@i=\count300
\c@mdf@env@ii=\count301
\c@mdf@zref@counter=\count302
Package zref Info: New property: mdf@pagevalue on input line 895.
)
(c:/texlive/2023/texmf-dist/tex/generic/iftex/ifpdf.sty
Package: ifpdf 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.
)
Invalid UTF-8 byte or sequence at line 164 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 164 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 201 replaced by U+FFFD.
\c@bclogocompteur=\count303
\bcval@epBarre=\skip123
\bcval@framesep=\skip124
\bcval@tailleOndu=\skip125
\bcval@borderWidth=\skip126
Invalid UTF-8 byte or sequence at line 216 replaced by U+FFFD.
\bcval@margeG=\skip127
Invalid UTF-8 byte or sequence at line 217 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 217 replaced by U+FFFD.
\bcval@margeD=\skip128
\bc@envbox=\box62
Invalid UTF-8 byte or sequence at line 334 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
Invalid UTF-8 byte or sequence at line 454 replaced by U+FFFD.
)
(c:/texlive/2023/texmf-dist/tex/latex/pst-blur/pst-blur.sty
Package: pst-blur 2005/09/08 package wrapper for pst-blur.tex (hv)
(c:/texlive/2023/texmf-dist/tex/generic/pst-blur/pst-blur.tex
v2.0, 2005/09/08)
File: pst-blur.tex 2005/09/08 v2.0 `PST-blur' (hv)
) (./test6.aux)
\openout1 = `test6.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 5
.
(c:/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2022/07/10 v2.5l Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 8.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 8.
File: bc-fleur.mps Graphic file (type mps)
<bc-fleur.mps>
Package mdframed Info: Not enough space on this page on input line 9.
[1
] (./test6.aux) )
Here is how much of TeX's memory you used:
11611 strings out of 478267
216818 string characters out of 5839314
1846476 words of memory out of 5000000
31498 multiletter control sequences out of 15000+600000
512319 words of font info for 36 fonts, out of 8000000 for 9000
319 hyphenation exceptions out of 8191
90i,9n,91p,639b,996s stack positions out of 10000i,1000n,20000p,200000b,200000s
Output written on test6.pdf (1 page).
```
| https://tex.stackexchange.com/users/54817 | Issue long time of compiling with bclogo env combined with pst-blur | true | You need to compile with `xelatex-unsafe` in order to work around the issue with Ghostscript and transparencies.
Here's the console output:
```
> xelatex-unsafe bouxe
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./bouxe.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-05-15>
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2023/texmf-dist/tex/latex/bclogo/bclogo.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-def/xetex.def)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/pst-xkey.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
) (/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfil
tered.code.tex)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.
tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic
.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo
nometric.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando
m.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa
rison.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.
code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round
.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.
code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ
erarithmetics.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)
))
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
`PSTricks' v3.19 <2023/04/30> (tvz,hv)
--- We are running latex or xelatex ---
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg))
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-color.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-dots.tex)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xetex-pstricks/pstricks.con
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/config/xdvipdfmx.cfg
Using PSTricks configuration for LaTeX+dvipdfmx
))) (/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
>>> Loading XeTeX special macros
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-xetex.def))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pst-grad/pst-grad.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pst-coil/pst-coil.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-coil/pst-coil.tex
v1.06, 2006/11/27
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex
v1.43, 2022/01/31)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/mdframed/mdframed.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/zref/zref-abspage.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/zref/zref-base.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/needspace/needspace.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pst-node/pst-node.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex))
(/usr/local/texlive/2023/texmf-dist/tex/latex/mdframed/md-frame-2.mdf))
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/ifpdf.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pst-blur/pst-blur.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-blur/pst-blur.tex
v2.0, 2005/09/08)) (./bouxe.aux)
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd) [1] (./bouxe.aux)
)
(see the transcript file for additional information)
Output written on bouxe.pdf (1 page).
Transcript written on bouxe.log.
```
| 1 | https://tex.stackexchange.com/users/4427 | 686375 | 318,429 |
https://tex.stackexchange.com/questions/686354 | 3 | Here is my code:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{lindenmayersystems}
\pgfdeclarelindenmayersystem{Tree}{
\rule{F -> F [ R [+F] [-F] ]}
\symbol{R}{
\pgflsystemstep=0.6\pgflsystemstep
}
}
\begin{document}
\begin{tikzpicture}
\draw l-system [l-system={Tree, axiom=[F], step=20, order=9, angle=60}];
\end{tikzpicture}
\end{document}
```
It worked earlier this year, but now when I try to use it, it says
```
Runaway definition?
->\pgfsyssoftpath@movetotoken {0.0pt}{0.0pt}\pgfsyssoftpath@linetotoken \ETC.
./lindmanyer.tex:12: TeX capacity exceeded, sorry [main memory size=5000000].
\pgfsyssoftpath@thepath ...oken {23.264pt}{22\ETC.
>
> l.12 ...], step=20, order=9, angle=60}] l-system ;
```
I have no idea what causes it and how to fix it.
| https://tex.stackexchange.com/users/54169 | capacity exceeded error when using l-system | true | The example requires an extremely large amount of main memory with PDFLaTeX — more than is usually statically allocated for it. I would therefore recommend compiling the example with LuaLaTeX, which dynamically allocates the required memory.
If in real life the example is an image in a larger document which cannot be converted to LuaLaTeX quickly, try to compile only the `tikzpicture` environments or alternatively only this one via `external` library with LuaLaTeX. However, for this it is necessary to activate shell-escape:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{lindenmayersystems}
\usetikzlibrary{external}
\tikzexternalize[system call={lualatex \tikzexternalcheckshellescape
-halt-on-error -interachtion=batchmode -jobname "\image" "\texsource"}]
\pgfdeclarelindenmayersystem{Tree}{
\rule{F -> F [ R [+F] [-F] ]}
\symbol{R}{
\pgflsystemstep=0.6\pgflsystemstep
}
}
\begin{document}
\begin{tikzpicture}
\draw l-system [l-system={Tree, axiom=[F], step=20, order=9, angle=60}];
\end{tikzpicture}
\end{document}
```
Note: Depending on packages you are using, this could fail, e.g., if you are loading a package, that should not be used with `lualatex`. In this case, it can help to load packages depending by engine, e.g.:
```
\documentclass{article}
\usepackage{iftex}
\ifluatex
\usepackage{fontspec}
\else
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\fi
\usepackage{tikz}
\usetikzlibrary{lindenmayersystems}
\usetikzlibrary{external}
\tikzexternalize[system call={lualatex \tikzexternalcheckshellescape
-halt-on-error -interachtion=batchmode -jobname "\image" "\texsource"}]
\pgfdeclarelindenmayersystem{Tree}{
\rule{F -> F [ R [+F] [-F] ]}
\symbol{R}{
\pgflsystemstep=0.6\pgflsystemstep
}
}
\begin{document}
\begin{tikzpicture}
\draw l-system [l-system={Tree, axiom=[F], step=20, order=9, angle=60}];
\end{tikzpicture}
\end{document}
```
As an alternative that does neither need shell-escape nor a change of your document, you can increase the memory allocated for main memory with PDFLaTeX. With MiKTeX you can run
```
pdflatex --extra_mem_top=1000000 foo.tex
```
(if `foo.tex` is the name of your document). With TeX Live you can use, e.g.:
```
pdflatex -cnf-line="extra_mem_top=700000" foo.tex
```
The result is the same as shown above.
| 0 | https://tex.stackexchange.com/users/277964 | 686382 | 318,431 |
https://tex.stackexchange.com/questions/240758 | 7 | I'd like to put one symbol over another? There are some similar things in math, like `$\binom{a}{b}$`, but I don't want the parentheses, or `$\frac{a}{b}$` without the division line. The closest I've found is `$\overset{a}{b}$` (from `mathtools`) but the `a` ends up smaller than the `b`.
| https://tex.stackexchange.com/users/76858 | How to put one symbol (number) above another | false | How about using `stackrel`?
```
\documentclass{article}
\begin{document}
Look at this: $\stackrel{*}{\Rightarrow}$
This is one way of how to put one symbol above another symbol.
\end{document}
```
| 2 | https://tex.stackexchange.com/users/106927 | 686389 | 318,434 |
https://tex.stackexchange.com/questions/686353 | 1 | I need a colored text in an enumeration list. While the colors work fine outside enumerations, they disappear within enumerations (when compiling a pdf instead of an epub, the colors are there). Is there a way to get colored text in an enumeration list with `tex4ebook`?
Here is an MWE:
```
\documentclass[12pt]{book}
\usepackage{enumitem}
\usepackage{xcolor}
\begin{document}
\textcolor{blue}{
This text is blue.
\begin{enumerate}
\item This text is black, although I would like to have it blue.
\end{enumerate}
}
\begin{enumerate}
\color{blue}
\item This text is still black, although I would like to have it blue.
\end{enumerate}
\end{document}
```
And my config file:
```
\Preamble{xhtml}
\begin{document}
\EndPreamble
```
| https://tex.stackexchange.com/users/179378 | tex4ebook: How to get colored text in enumerations | true | The problem here is due to how HTML works. As `\textcolor` can be used for shorter texts inside paragraphs, it must produce HTML tags that can be used inside paragraphs. As you use `\textcolor` for several paragraphs and even list environment, the produced markup is invalid. It works for the first line, as the start of color is marked up correctly, but the browser closes the color element as soon as the list starts.
To solve this, I would introduce a new environment, which can be configured to produce a correct HTML markup. I would modify your file in this way:
```
\documentclass[12pt]{book}
\usepackage{enumitem}
\usepackage{xcolor}
\newenvironment{colorenv}[1]{\color{#1}}{}
\begin{document}
\begin{colorenv}{blue}
This text is blue.
\begin{enumerate}
\item This text is black, although I would like to have it blue.
\end{enumerate}
\end{colorenv}
\begin{enumerate}
\item
\begin{colorenv}{blue}
This text is still black, although I would like to have it blue.
\end{colorenv}
\end{enumerate}
\end{document}
```
The `colorenv` can be then configured in the configuration file:
```
\Preamble{xhtml}
\ExplSyntaxOn
\renewenvironment{colorenv}[1]{
\get:xcolorcss{#1}\:colorenv
\ifvmode\IgnorePar\fi\EndP\HCode{<div~style="color:\:colorenv">}\par\ShowPar
}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
\ExplSyntaxOff
\begin{document}
\EndPreamble
```
The `\get:xcolorcss` command converts the color name, such as `blue` to hexadecimal RGB value, which can be used in CSS instructions. It is saved in the `\:colorenv` command, which we then use in `<div~style="color:\:colorenv">` instruction.
This is the result:
| 2 | https://tex.stackexchange.com/users/2891 | 686390 | 318,435 |
https://tex.stackexchange.com/questions/686402 | 0 | I want `Z` underlined to show it as a complex number in math-mode. For lowercase `z` I can use `\underline{z}` but if I use it with `Z` it displays the normal Letter without a underline.
How do I get a underline below my `Z`?
| https://tex.stackexchange.com/users/297543 | How do I underline capital letters in math-mode | false | According to this [related post](https://tex.stackexchange.com/questions/75745/how-do-you-write-a-vector-with-an-underline-instead-of-an-arrow): what you are missing is `\usepackage{amsmath}` then `$\underline{X}$` should do the trick, see minimal example:
```
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\vec{x}$ $\overline{x}$ $\underline{x}$ $\mathbf{x}$
$\vec{\mathbf{x}}$ $\overline{\mathbf{x}}$ $\underline{\mathbf{x}}$
$\underline{X}$
\end{document}
```
works, also with capital letters.
| 4 | https://tex.stackexchange.com/users/174344 | 686404 | 318,437 |
https://tex.stackexchange.com/questions/20660 | 133 | I have several citations in a `beamer`-based presentation. Is it possible to split the bibliography across two slides? I'm using `natbib` / `bibtex`. And I currently just have:
```
\begin{frame}
\tiny
\bibliographystyle{apalike}
\bibliography{Biblio-Database}
\end{frame}
```
But we're to the point where even *tiny* won't cut it. Is there anyway to do this? I'd really prefer to *not* create the bibliography by hand because I once had it 'stuck to me' that I omitted an entry in the bibliography (which I'd created by hand)... nothing quite like ending on a clerical omission...
| https://tex.stackexchange.com/users/1393 | How can I split a beamer bibliography across two slides? | false | For those working with biblatex on Overleaf this works fine :
```
\begin{frame}[allowframebreaks]{Literature References}
\tiny
\printbibliography
\end{frame}
```
| 1 | https://tex.stackexchange.com/users/297546 | 686408 | 318,438 |
https://tex.stackexchange.com/questions/686399 | 0 | The background color behind the image should be white over the whole height of the box. Just the text has to be with the green background color. Is it possible to do it inside the box or only with another box just for the image?
```
\documentclass{article}
\usepackage[skins,hooks,xparse,breakable]{tcolorbox}
\usepackage{xcolor}
\usepackage{chngcntr}
\usepackage{blindtext}
\usepackage{tikz}
\usepackage{graphicx}
\newcounter{examplecounter}
\counterwithin{examplecounter}{section}
\usetikzlibrary{calc}
\definecolor{headercolourgreen}{rgb}{0,0.7019,0.7019}
\usepackage[
typ=ab,
fach=,
lerngruppe=,
farbig
% nummer=2A,
% datumAnzeigen,
% namensfeldAnzeigen,
]{schule}
\tcbset{MyStyle/.style={
enhanced,
breakable,
arc=0pt,
boxrule=0pt,
colback=white,
before skip={2em}, % increase spacing before the env
}}
\DeclareTColorBox{new}{O{}}{
MyStyle,
overlay unbroken and first={
% draw box on the left
\node[fill=headercolourgreen!5,
font=\color{headercolourgreen}\sffamily\bfseries\large,
anchor=south west,
xshift=2mm
] (titlebox) at (frame.north west)
{Exercise \refstepcounter{examplecounter}\theexamplecounter};
\draw[draw=headercolourgreen, line width=2pt]
(titlebox.north west-|frame.north west)--+(0,-1.5);
},
}
\DeclareTColorBox{aufgabeAux}{O{}}{
MyStyle,
overlay unbroken and first={
% draw box on the left
\node[fill=headercolourgreen!5,
font=\color{headercolourgreen}\sffamily\bfseries\large,
anchor=south west,
xshift=2mm
] (titlebox) at (frame.north west)
{Aufgabe \refstepcounter{aufgabe}\theaufgabe\ #1};
\draw[draw=headercolourgreen, line width=2pt]
(titlebox.north west-|frame.north west)--+(0,-1.5);
},
}
\pgfkeys{MyAufgabe/.cd,
subtitle/.store in=\MyAufgabeSubtitle,
}
\renewenvironment{aufgabe}[1][]{%
\pgfkeys{MyAufgabe/.cd, subtitle={}, #1}%
\begin{aufgabeAux}[\MyAufgabeSubtitle]%
}{%
\end{aufgabeAux}%
}%
\newlength\myheight
\newlength\mydepth
\settototalheight\myheight{Xygp}
\settodepth\mydepth{Xygp}
\newcommand*\inlinegraphics[1]{%
\settototalheight\myheight{Xygp}%
\settodepth\mydepth{Xygp}%
\raisebox{-\mydepth}{\includegraphics[height=\myheight]{#1}}%
}
\newcommand{\dpcalc}{\textbf{\inlinegraphics{example-image-b}\space}}
\author{}
\title{}
\date{\today}
\begin{document}
\begin{aufgabe}[subtitle=This is a subtitle \dpcalc]
This is an example of using the new \verb|aufgabe| environment with a subtitle.
This should have the title appear as the \verb|new| environment.
\end{aufgabe}
\end{document}
```
| https://tex.stackexchange.com/users/37163 | How to erase the backgroundcolor just for one image/word? | true | Use
```
\newcommand{\dpcalc}{\rlap{\hspace{1em}\textbf{\inlinegraphics{example-image-b}\space}}}
```
I added some `\hspace` you can twiddle.
| 1 | https://tex.stackexchange.com/users/293669 | 686422 | 318,444 |
https://tex.stackexchange.com/questions/686424 | 0 | I was trying to compile [this](https://www.latextemplates.com/template/classicthesis-thesis) template for **thesis**. It, however, gives the following error, what's wrong with it ?
```
Command Line: xelatex.exe --interaction=errorstopmode --synctex=-1 "main4.tex"
Startup Folder: C:\Users\hynek0\Desktop\TH0dipl
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/W32TeX) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./main4.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2021-11-22>
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2021/11/13 v3.35 KOMA-Script document class (report)
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrkbase.sty
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrbase.sty
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrlfile.sty
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrlogo.sty)))
(c:/texlive/2021/texmf-dist/tex/latex/graphics/keyval.sty)))
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/typearea.sty))
(./classicthesis-config.tex
(c:/texlive/2021/texmf-dist/tex/latex/base/inputenc.sty
Package inputenc Warning: inputenc package ignored with utf8 based engines.
) (c:/texlive/2021/texmf-dist/tex/latex/lipsum/lipsum.sty
(c:/texlive/2021/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
(c:/texlive/2021/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
(|extractbb --version))))
(c:/texlive/2021/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex))
(c:/texlive/2021/texmf-dist/tex/generic/babel/babel.sty
(c:/texlive/2021/texmf-dist/tex/generic/babel/xebabel.def
(c:/texlive/2021/texmf-dist/tex/generic/babel/txtbabel.def))
(c:/texlive/2021/texmf-dist/tex/generic/babel-german/ngerman.ldf
(c:/texlive/2021/texmf-dist/tex/generic/babel-german/ngermanb.ldf))
(c:/texlive/2021/texmf-dist/tex/generic/babel-english/american.ldf
(c:/texlive/2021/texmf-dist/tex/generic/babel-english/english.ldf)))
(c:/texlive/2021/texmf-dist/tex/latex/csquotes/csquotes.sty
(c:/texlive/2021/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2021/texmf-dist/tex/latex/csquotes/csquotes.def)
(c:/texlive/2021/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/texlive/2021/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(c:/texlive/2021/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/texlive/2021/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/texlive/2021/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/texlive/2021/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(c:/texlive/2021/texmf-dist/tex/latex/logreq/logreq.sty
(c:/texlive/2021/texmf-dist/tex/latex/logreq/logreq.def))
(c:/texlive/2021/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2021/texmf-dist/tex/latex/url/url.sty)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/blx-bibtex.def
Package biblatex Warning: Using fall-back BibTeX(8) backend:
(biblatex) functionality may be reduced/unavailable.
) (c:/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/blx-natbib.def)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/bbx/numeric-comp.bbx
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/cbx/numeric-comp.cbx)
(c:/texlive/2021/texmf-dist/tex/latex/biblatex/biblatex.cfg))
(c:/texlive/2021/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2021/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2021/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2021/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2021/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2021/texmf-dist/tex/latex/lm/t1lmr.fd))
(c:/texlive/2021/texmf-dist/tex/latex/base/textcomp.sty)
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/scrhack.sty
(c:/texlive/2021/texmf-dist/tex/latex/xpatch/xpatch.sty
(c:/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)))
(c:/texlive/2021/texmf-dist/tex/latex/tools/xspace.sty)
(c:/texlive/2021/texmf-dist/tex/latex/mparhack/mparhack.sty)
(c:/texlive/2021/texmf-dist/tex/latex/base/fixltx2e.sty
Package fixltx2e Warning: fixltx2e is not required with releases after 2015
(fixltx2e) All fixes are now in the LaTeX kernel.
(fixltx2e) See the latexrelease package for details.
) (c:/texlive/2021/texmf-dist/tex/latex/acronym/acronym.sty
(c:/texlive/2021/texmf-dist/tex/latex/bigfoot/suffix.sty)
(c:/texlive/2021/texmf-dist/tex/generic/xstring/xstring.sty
(c:/texlive/2021/texmf-dist/tex/generic/xstring/xstring.tex))
(c:/texlive/2021/texmf-dist/tex/latex/relsize/relsize.sty))
(c:/texlive/2021/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2021/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2021/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2021/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2021/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(c:/texlive/2021/texmf-dist/tex/latex/tools/tabularx.sty
(c:/texlive/2021/texmf-dist/tex/latex/tools/array.sty))
(c:/texlive/2021/texmf-dist/tex/latex/caption/caption.sty
(c:/texlive/2021/texmf-dist/tex/latex/caption/caption3.sty
(c:/texlive/2021/texmf-dist/tex/latex/caption/caption-koma.sto)))
(c:/texlive/2021/texmf-dist/tex/latex/subfig/subfig.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/listings.sty
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstmisc.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/listings.cfg))
(c:/texlive/2021/texmf-dist/tex/latex/koma-script/listings.hak)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang1.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang2.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang3.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang1.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang2.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang3.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang1.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang2.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstlang3.sty)
(c:/texlive/2021/texmf-dist/tex/latex/listings/lstmisc.sty)
(c:/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/texlive/2021/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(c:/texlive/2021/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(c:/texlive/2021/texmf-dist/tex/latex/hycolor/hycolor.sty)
(c:/texlive/2021/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(c:/texlive/2021/texmf-dist/tex/latex/auxhook/auxhook.sty)
(c:/texlive/2021/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def)
(c:/texlive/2021/texmf-dist/tex/generic/intcalc/intcalc.sty)
(c:/texlive/2021/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(c:/texlive/2021/texmf-dist/tex/latex/hyperref/puenc.def)
! Package hyperref Error: Wrong driver option `pdftex',
(hyperref) because pdfTeX in PDF mode is not detected.
See the hyperref package documentation for explanation.
Type H <return> for immediate help.
...
l.4073 \ProcessKeyvalOptions{Hyp}
?
```
| https://tex.stackexchange.com/users/171927 | Thesis template doesn't work with xetex | true | The template does
```
\input{classicthesis-config}
```
and `classicthesis-config` contains the lines
```
\PassOptionsToPackage{pdftex}{graphicx}
\usepackage{graphicx}
...
\PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref} % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1
```
you must edit those lines to read
```
\usepackage{graphicx}
...
\PassOptionsToPackage{hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref} % backref linktocpage pagebackref
```
and perhaps other things need adjustments.
This file is very ill-usable as it does a hardcoded `\usepackage{classicthesis}`, which logically should be separated from this file for easier adding user options. For example at my locale xelatex could not find `TeX Gyre Pagella` (it is a nightmare with XeLaTeX on mac os to find fonts in texlive tree, but perhaps the font has changed name, not checked), and I needed to add `palatino=false`.
| 2 | https://tex.stackexchange.com/users/293669 | 686427 | 318,445 |
https://tex.stackexchange.com/questions/686429 | 0 | I'm currently trying to guess this image with Tikz (<https://postimg.cc/qhZdj8cD>). Unfortunately, my solution doesn't look quite as nice yet. What can I change to make it look more like the picture? I am concerned with the color fill and the arrows on the axes.
This is my code so far. Thanks in advance
```
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1,0) -- (45.4,0);
\draw (0,0) rectangle ++(2,2);
\draw (2,0) rectangle ++(2,2);
\draw (4,0) rectangle ++(2,2);
\draw (6,4,0) rectangle ++(2,2);
\draw (8.4,0) rectangle ++(2,2);
\draw (10.4,0) rectangle ++(2,2);
\draw (12.8,0) rectangle ++(2,2);
\draw (14.8,0) rectangle ++(2,2);
\draw (16.8,0) rectangle ++(2,2);
\draw (19.2,0) rectangle ++(2,2);
\draw (21.2,0) rectangle ++(2,2);
\draw (23.2,0) rectangle ++(2,2);
\draw (25.6,0) rectangle ++(2,2);
\draw (27.6,0) rectangle ++(2,2);
\draw (29.6,0) rectangle ++(2,2);
\draw (32,0) rectangle ++(2,2);
\draw (34,0) rectangle ++(2,2);
\draw (36,0) rectangle ++(2,2);
\draw (38,4,0) rectangle ++(2,2);
\draw (40.4,0) rectangle ++(2,2);
\draw (42.4,0) rectangle ++(2,2);
\draw (6.2,-1) -- ++(0,2);
\draw (12.6,-1) -- ++(0,2);
\draw (19,-1) -- ++(0,2);
\draw (25.4,-1) -- ++(0,2);
\draw (31.8,-1) -- ++(0,2);
\draw (38.2,-1) -- ++(0,2);
\node at (3,-0.5){day 1};
\node at (9,4,-0.5){day 2};
\node at (15.8,-0.5){day 3};
\node at (22.2,-0.5){day 4};
\node at (28.6,-0.5){day 5};
\node at (35,-0.5){day 6};
\node at (41.4,-0.5){day 7};
\end{tikzpicture}
\end{document}
```
| https://tex.stackexchange.com/users/226836 | Help with Tikz colouring and arrow drawing | false | Like this (for 3 days...):
Code:
```
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[blue] (.4,0) rectangle (1.4,1);
\fill[red] (1.4,0) rectangle (2.4,1);
\fill[cyan] (2.4,0) rectangle (3.4,1);
\draw (.2,-.5)--(.2,.5);
\draw (3.6,-.5)--(3.6,.5);
\node at (1.9,-.3) () {\bfseries Day 1};
\fill[blue] (3.8,0) rectangle (4.8,1);
\fill[red] (4.8,0) rectangle (5.8,1);
\fill[cyan] (4.8,1) rectangle (5.8,2);
\draw (.2,-.5)--(.2,.5);
\draw (3.6,-.5)--(3.6,.5);
\node at (5.25,-.3) () {\bfseries Day 2};
\fill[blue] (7,0) rectangle (8,1);
\fill[red] (9,0) rectangle (10,1);
\fill[cyan] (9,1) rectangle (10,2);
\draw (10.2,-.5)--(10.2,.5);
\draw (6.8,-.5)--(6.8,.5);
\node at (8.5,-.3) () {\bfseries Day 3};
\draw[-latex,line width=2pt] (0,0)--(10.7,0);
\end{tikzpicture}
\end{document}
```
**EDIT for legends**:
```
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\fill[blue] (.4,0) rectangle (1.4,1);
\fill[red] (1.4,0) rectangle (2.4,1);
\fill[cyan] (2.4,0) rectangle (3.4,1);
\draw (.2,-.5)--(.2,.5);
\draw (3.6,-.5)--(3.6,.5);
\node at (1.9,-.3) () {\bfseries Day 1};
\fill[blue] (3.8,0) rectangle (4.8,1);
\fill[red] (4.8,0) rectangle (5.8,1);
\fill[cyan] (4.8,1) rectangle (5.8,2);
\draw (.2,-.5)--(.2,.5);
\draw (3.6,-.5)--(3.6,.5);
\node at (5.25,-.3) () {\bfseries Day 2};
\fill[blue] (7,0) rectangle (8,1);
\fill[red] (9,0) rectangle (10,1);
\fill[cyan] (9,1) rectangle (10,2);
\draw (10.2,-.5)--(10.2,.5);
\draw (6.8,-.5)--(6.8,.5);
\node at (8.5,-.3) () {\bfseries Day 3};
\draw[-latex,line width=2pt] (0,0)--(10.7,0);
\fill[blue] (.5,-1.5) rectangle (1,-1);
\node at (1.5,-1.25) () {One};
\fill[red] (3,-1.5) rectangle (3.5,-1);
\node at (4,-1.25) () {Two};
\fill[cyan] (5.5,-1.5) rectangle (6,-1);
\node at (6.5,-1.25) () {Three};
\end{tikzpicture}
\end{document}
```
New output:
| 1 | https://tex.stackexchange.com/users/24644 | 686435 | 318,447 |
https://tex.stackexchange.com/questions/686429 | 0 | I'm currently trying to guess this image with Tikz (<https://postimg.cc/qhZdj8cD>). Unfortunately, my solution doesn't look quite as nice yet. What can I change to make it look more like the picture? I am concerned with the color fill and the arrows on the axes.
This is my code so far. Thanks in advance
```
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1,0) -- (45.4,0);
\draw (0,0) rectangle ++(2,2);
\draw (2,0) rectangle ++(2,2);
\draw (4,0) rectangle ++(2,2);
\draw (6,4,0) rectangle ++(2,2);
\draw (8.4,0) rectangle ++(2,2);
\draw (10.4,0) rectangle ++(2,2);
\draw (12.8,0) rectangle ++(2,2);
\draw (14.8,0) rectangle ++(2,2);
\draw (16.8,0) rectangle ++(2,2);
\draw (19.2,0) rectangle ++(2,2);
\draw (21.2,0) rectangle ++(2,2);
\draw (23.2,0) rectangle ++(2,2);
\draw (25.6,0) rectangle ++(2,2);
\draw (27.6,0) rectangle ++(2,2);
\draw (29.6,0) rectangle ++(2,2);
\draw (32,0) rectangle ++(2,2);
\draw (34,0) rectangle ++(2,2);
\draw (36,0) rectangle ++(2,2);
\draw (38,4,0) rectangle ++(2,2);
\draw (40.4,0) rectangle ++(2,2);
\draw (42.4,0) rectangle ++(2,2);
\draw (6.2,-1) -- ++(0,2);
\draw (12.6,-1) -- ++(0,2);
\draw (19,-1) -- ++(0,2);
\draw (25.4,-1) -- ++(0,2);
\draw (31.8,-1) -- ++(0,2);
\draw (38.2,-1) -- ++(0,2);
\node at (3,-0.5){day 1};
\node at (9,4,-0.5){day 2};
\node at (15.8,-0.5){day 3};
\node at (22.2,-0.5){day 4};
\node at (28.6,-0.5){day 5};
\node at (35,-0.5){day 6};
\node at (41.4,-0.5){day 7};
\end{tikzpicture}
\end{document}
```
| https://tex.stackexchange.com/users/226836 | Help with Tikz colouring and arrow drawing | false | With nodes in chains. first three days:
```
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
chains,
positioning}
\begin{document}
\begin{tikzpicture}[
node distance = 0mm and 1mm,
start chain = A going right,
N/.style = {draw, fill=#1!30, minimum size=5mm, outer sep=0pt,
node contents={},on chain=A}
]
\node[N=green]; % A-1
\node[N=red];
\node[N=blue];
%
\node[N=green]; % A-4
\node[N=blue];
%
\node[N=green,right=7mm of A-5]; % A-6
\node[N=blue, right=7mm of A-6]; % A-7
% nodes above
\node[N=red, above=of A-5];
\node[N=red, above=of A-7];
% arrow
\draw[-Straight Barb, semithick]
([xshift=-4mm] A-1.south west) -- ([xshift=4mm] A-7.south east);
% tick
\foreach \x [count=\i] in {1,4,6}
\draw ([xshift=-0.5mm] A-\x.west) -- ++ (0,-0.8) coordinate[yshift=2mm] (d\i);
\draw ([xshift= 0.5mm] A-7.east) -- ++ (0,-0.8) coordinate[yshift=2mm] (d4);
% days
\path (d1) -- node {Day 1} (d2)
-- node {Day 2} (d3)
-- node {Day 3} (d4);
\end{tikzpicture}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/18189 | 686445 | 318,451 |
https://tex.stackexchange.com/questions/686443 | 26 | ConTeXt has a number of advantages over LaTeX. But for some reason people prefer second one.
1. ConTeXt can generate epub, pdf, XHTML and xml while LaTeX can only generate pdf and dvi. [1]
2. ConTeXt provides third-party font support while pdflatex doesn't.
3. ConTeXt provides more control over document formatting and style.
4. ConTeXt supports MathMl natively.
5. ConTeXt is monolithic and mostly you don't need packages and modules in ConTeXt. [1]
6. ConTeXt error messages are easier to understand (at least in my opinion).
7. ConTeXt has better MetaPost integration.
8. ConTeXt has native SVG support.
9. ConTeXt can be used to work with spreadsheets.
10. ConTeXt is unified. It has only one implementation and you don't need to think about comparability with other implementations.
| https://tex.stackexchange.com/users/297321 | Why don't people use ConTeXt? | false |
>
> 1. ConTeXt can generate epub, pdf, XHTML and xml while LaTeX can only generate pdf and dvi. [1]
>
>
>
Many people generate epub or html from latex, using tools such as latexml or make4ht. The fact that these wholly or partly use non-tex systems to parse the document is mostly an implementaton detail.
>
> 2. ConTeXt provides third-party font support while pdflatex doesn't.
>
>
>
lualatex can use the same fonts as context.
>
> 3. ConTeXt provides more control over document formatting and style.
>
>
>
Possibly. It depends what you are used to I suspect.
>
> 4. ConTeXt supports MathMl natively.
>
>
>
Same answer as 1.
>
> 5. ConTeXt is monolithic and mostly you don't need packages and modules in ConTeXt. [1]
>
>
>
This can be a disadvantage if your document needs that functionality
>
> 6. ConTeXt error messages are easier to understand (at least in my opinion).
>
>
>
People assume they won't make errors so are unlikely to choose based on this
>
> 7. ConTeXt has better MetaPost integration.
>
>
>
yes although integrated metapost is available in lualatex, more people prefer (or know about) tikz
>
> 8. ConTeXt has native SVG support.
>
>
>
Same answer as 1.
>
> 9. ConTeXt can be used to work with spreadsheets.
>
>
>
Not surprising if better, I don't really know that functionality
>
> 10. ConTeXt is unified. It has only one implementation and you don't need to think about comparability with other implementations.
>
>
>
You can restrict your document to lualatex and not worry about other engines if you wish.
---
But probably none of the above is the main reason. LaTeX is not only a typesetting system, it forms a language of communication. The latex community is much much larger. Help on sites such as this is far easier to obtain for latex, Journals and manuscript archives are far more likely to accept latex.
This means the bar for a format like context or a non-tex system such as Typst is *very* high. Just being better is not enough, it needs to be so much better it forces a community shift to a new language for technical documents.
| 34 | https://tex.stackexchange.com/users/1090 | 686451 | 318,453 |
https://tex.stackexchange.com/questions/686430 | 1 | The following simple MWE, generates an error:
```
\documentclass{book}
\usepackage{complexity}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\begin{document}
Test!
\end{document}
```
literally:
```
! LaTeX Error: Command \lang already defined.
Or name \end... illegal, see p.192 of the manual.
```
Is this something that can be dealt with at user level?
| https://tex.stackexchange.com/users/224933 | Incompatibility of complexity and polyglossia | true | The `complexity` package defines `\lang` to typeset “language” names such as `\CVP` (Circuit Value Problem) and `\SAT` (Satisfiability). I'm not sure whether classifying these as “languages” is sound. Anyway, it's definitely not possible to change the name.
On the other hand, `polyglossia` defines a `lang` environment by
```
\newenvironment{lang}[2][]{%
\begin{otherlanguage}[#1]{#2}%
}{%
\end{otherlanguage}
}%
```
which is basically a shorthand for `otherlanguage`.
You need to make a choice:
1. not using `complexity`; or
2. avoiding the `lang` environment in favor of `otherlanguage`.
If you pursue the latter strategy, do
```
\documentclass{book}
\usepackage{polyglossia}
% undefine the lang environment
\let\lang\relax\let\endlang\relax
\usepackage{complexity}
\setdefaultlanguage[variant=american]{english}
\begin{document}
Test!
\end{document}
```
| 1 | https://tex.stackexchange.com/users/4427 | 686452 | 318,454 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.