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/683515 | 1 | In a LaTeX package using DocStrip with pretty standard structure one could have the following files:
```
mypackage-code.tex
mypackage.dtx
mypackage.ins
mypackage.tex
```
`mypackage.dtx` is the main file where the code is and from which the `.sty` is extracted, according to instructions in `mypackage.ins`. `mypackage-code.tex` is just a wrapper around `mypackage.dtx`:
```
\documentclass{l3doc}
\usepackage{mypackage}
\begin{document}
\DocInput{mypackage.dtx}
\end{document}
```
So that we can generate a separate code documentation as `mypackage-code.pdf`.
`mypackage.tex` is the user manual, generating `mypackage.pdf`.
This is all good and produces desired results on the LaTeX side of things. The problem occurs because of the way AUCTeX names the auto generated style files for them (those stored in `./auto/`). AUCTeX uses the basename of the file with `.el` extension. But in so doing the generated style files for `mypackage.dtx` and `mypackage.tex` conflict and override each other (technically `mypackage.ins` also conflicts, but it is less frequently edited, so less of a problem, but still...). So that whenever I open either of those files I start to notice things are amiss, until I say "Ah!!!", and call `C-u C-c C-n` to reparse the file. But that's pretty annoying.
So, the question is, is there a way to control on a per-file basis the name of the auto generated style file so that those won't conflict like that? Like a file local variable, or something of the sort?
Failing that, are there any common / known workarounds for this situation?
| https://tex.stackexchange.com/users/105447 | AUCTeX auto style files for .dtx and .tex with the same base name | true | I'm not sure if there is an "one size fits all" solution for your issue. I'd probably write a `mypackage.el` supporting macros/environments provided by the final product `mypackage.sty` and save that under the directory in `TeX-style-private`, and rely on parsed information in `./auto/mypackage.el` only for the `.dtx` file. This approach should give you enough flexibility that when you `\usepackage{mypackage}`, only the relevant part is loaded, and when you load your `.dtx` file, both AUCTeX styles are loaded (in theory, at least; I didn't try).
| 1 | https://tex.stackexchange.com/users/76063 | 683976 | 317,315 |
https://tex.stackexchange.com/questions/683957 | 3 | I realize it must be something SO basic, but I'm having difficulty figuring out where the problem can possible be.
It seems to me all three of these `\addplot`s should be the same. However, only the first one works as expected (which is a problem, because I'm needing it to perform the calculation.
```
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\pgfmathparse{1+(6/100)}
\begin{axis}[
xtick distance=5,
minor x tick num=4
]
\addplot[smooth,green,domain=0:25] gnuplot [id=plot3] {155*1.06**x}; % works
\addplot[smooth,green,domain=0:25] gnuplot [id=plot2] {155*(1+(6/100))**x)}; % makes dumb flat line
\addplot[smooth,green,domain=0:25] gnuplot [id=plot4] {155*\pgfmathresult**x}; % makes some sort of weird parobalic nonsense?
\end{axis}
\end{tikzpicture}
\end{document}
```
I can tell I'm not explaining my question very well, so please don't hesitate to direct me to reword or explain something.
| https://tex.stackexchange.com/users/278257 | performing math operation in tikz pgfplot functions | true | There are several problems here.
1. `\pgfmathresult` is used by almost all the operations in the `pgfmath` layer, so you can use it only immediately after the calculation, or it will be overwritten.
2. When using `gnuplot`, the expression is passed to it with almost no processing, so you have to use `gnuplot` syntax and rules. `6/100` is an integer expression, so it will give zero. Use `6.0/100` or similar tricks to force floating point.
3. You should manually expand the macros *before* passing them to `gnuplot`:
```
\documentclass[tikz, margin=2.72mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\newcommand{\myk}{(1+(6.0/100))}
\begin{axis}[
xtick distance=5,
minor x tick num=4
]
\addplot[green,domain=0:25] gnuplot [id=plot3] {155*1.06**x}; % works
\addplot[smooth,red,dashed,domain=0:25] gnuplot [id=plot2] {155*(1+(6./100))**x}; % makes dumb flat line
% this trick will "prepare" an expanded "addplot" command into \tmp
% and then we'll call it.
\edef\tmp{\noexpand\addplot[smooth,blue,densely dotted,domain=0:25] gnuplot [id=plot4] {155*(\myk**x)}}
\tmp;
\end{axis}
\end{tikzpicture}
\end{document}
```
| 4 | https://tex.stackexchange.com/users/38080 | 683988 | 317,320 |
https://tex.stackexchange.com/questions/683986 | 5 | Is there a simple (boolean) test to check that the document is being compiled on Overleaf (vs elsewhere, i.e. local computer via git download)
Use case (one example) : I'm using fonts that are available only on my laptop and I want Overleaf to fall back to a common font (e.g. free font)
| https://tex.stackexchange.com/users/95427 | How to check that I'm compiling using Overleaf? | false | Given the usecase mentioned, it seems more prudent to check if the font exists, and if not, to load the fallback font.
To do that, I would recommend the method used in [this answer](https://tex.stackexchange.com/a/438768/234004) using the `fontspec` package.
In your case, the MWE from that answer would be changed slightly to:
```
\documentclass{article}
%\url{https://tex.stackexchange.com/q/438577/86}
\usepackage{fontspec}
% Check to see if this font is installed system-wide
\IfFontExistsTF{TeX Gyre Termes}{%
% One person has this installed system-wide
\setmainfont{TeX Gyre Termes}
}{
% If not, load it from the file
\setmainfont{Latin Modern Roman}
}
\begin{document}
Wouldn't it be nice if this were Termes?
\end{document}
```
replacing TeX Gyre Termes with the font you want to check for and Latin Modern Roman with the font you want to fall back to.
The other possibility is to put the font file into the project directory, assuming you have an .otf or .ttf, and load it using `fontspec` with `\setmainfont{texgyretermes-regular.otf}`. This should work on Overleaf as well as locally.
| 3 | https://tex.stackexchange.com/users/234004 | 683996 | 317,323 |
https://tex.stackexchange.com/questions/683375 | 0 | The mwe below compiled without error until I made this change:
Original: `\documentclass[12pt]{exam}`
Revision: `\documentclass[12pt]{article}`
Changing from `{exam}` to `{article}` causes these 2 related errors:
`Undefined control sequence`
`l.53 \pagestyle{head}`
`No \begin{document} command was found.`
**The `\begin{document}` is in the same place as before the revision.**
Thank you for taking time to assist me!
mwe
```
\documentclass[12pt]{article}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
%--code lines #4-6 show grid lines for page layout. Don't use in a real document!
%\usepackage{showframe}
%\renewcommand\ShowFrameLinethickness{0.15pt}
%\renewcommand*\ShowFrameColor{\color{red}}
\usepackage{amsmath}
\usepackage{systeme}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18} % <---
\pgfplotsset{GRID/.style = { % define common style for images
width=100mm,
axis lines=middle,
axis line style={-stealth,shorten >=-3mm},
xlabel=$x$, xlabel style={anchor=south west},
ylabel=$y$, ylabel style={anchor=south east},
grid=both,
grid style={draw=gray!25},
ticklabel style={font=\scriptsize, text=black!50, inner sep=1pt},
xmin=-10, xmax=10,
ymin=-10, ymax=10,
xtick distance=2,
ytick distance=2,
minor tick num=1,
tick align=outside,
}}
\usetikzlibrary{intersections}
%added
\usepackage[strict]{changepage}
\makeatletter
\newsavebox\restorebox
\newenvironment{restoretext}%
{\@parboxrestore%
\begin{adjustwidth}{-3em}{}%
\begin{lrbox}{\restorebox}%
\begin{minipage}{\linewidth}%
}{\end{minipage}\end{lrbox}
\usebox\restorebox
\end{adjustwidth}
}
\makeatother
%---------------------------------------------------------------%
\usepackage{tikz}
\usepackage{enumitem,tasks}
\settasks{
label-width=2em,
item-indent=3em,
label=(\arabic*),
column-sep=0.75em, % <---
}
\pagestyle{head}
\header{\textbf{Algebra II: Quadratic Systems}}
{}
{ 04/17/23}
\begin{document}
\textbf {SET A: Solve each system by graphing.}
\begin{tasks}(2)
%Prob #1
\task $\syslineskipcoeff{1}\systeme*{y=2(x+4)^2-5, y=-2x-9}$\\
\medskip
\begin{restoretext}
\begin{tikzpicture}
\begin{axis}[GRID]
\end{axis}
\end{tikzpicture}
\end{restoretext}
%Prob #2
\task $\syslineskipcoeff{1}\systeme*{y=2(x+4)^2-3, y=x+7}$\\
\medskip
\begin{restoretext}
\begin{tikzpicture}
\begin{axis}[GRID]
\end{axis}
\end{tikzpicture}
\end{restoretext}
\bigskip
%Prob #3
\task $\syslineskipcoeff{1}\systeme*
{y=2(x-3)^2+1, 2x+y=11}$\\
\medskip
\begin{restoretext}
\begin{tikzpicture}
\begin{axis}[GRID]
\end{axis}
\end{tikzpicture}
\end{restoretext}
%Prob #4
\task $\syslineskipcoeff{1}\systeme*
{y=\frac{1}{2}(x-4)^2-3, y=2x-11}$\\
\medskip
\begin{restoretext}
\begin{tikzpicture}
\begin{axis}[GRID]
\end{axis}
\end{tikzpicture}
\end{restoretext}
\end{tasks}
\end{document}```
```
| https://tex.stackexchange.com/users/184615 | Docclass {article}: changing {exam} class to {article} produces log errors | true | The exam class defines its own headers and styles, which are different from the article class. Thus `\pagestyle{head}` produces an irrecoverable error and the compilation collapses.
The problem goes away if you replace
```
\pagestyle{head}
\header{\textbf{Algebra II: Quadratic Systems}}
{}
{ 04/17/23}
```
with
```
\thispagestyle{myheadings}
\markright{\normalfont\textbf{Algebra II: Quadratic Systems}\hfill 04/17/23}
```
Since `exam` loads the class `article`, the solution (for this page) will work for both classes.
| 1 | https://tex.stackexchange.com/users/161015 | 683999 | 317,325 |
https://tex.stackexchange.com/questions/684012 | 0 | Both `\hbox` and `\vbox` (and similar box commands) require explicitly to enclose their content inside of curly braces, so they behave differently from macros. What's the reason of this specification?
If I redefine for instance `\hbox` as a macro, would there be any issue?
```
\let\orihbox\hbox
\def\hbox#1{\orihbox{#1}}
```
| https://tex.stackexchange.com/users/43121 | Why are braces mandatory in boxes? | true | `\hbox` and `\vbox` are primitives with following syntax:
```
\hbox {horizontal list}
or
\hbox to dimen {horizontal list}
or
\hbox spread dimen {horizontal list}
```
The `\hbox {horizontal list}` opens the TeX group at the beginning of the horizontal list and closes the group at the end of the list. It means that required braces in the syntax is very natural.
| 5 | https://tex.stackexchange.com/users/51799 | 684016 | 317,329 |
https://tex.stackexchange.com/questions/6333 | 195 | I am looking for a grammar-checking tool, i.e., something that checks for mistakes such as "two dog" or "a books". It has to work on Linux (Ubuntu). Also, since I use macros to generate some of the prose, it has to somehow work with LaTeX. I don't think that such checkers are LaTeX-aware, so it has to work with some compilation product of LaTeX: DVI or PDF.
If you suggest a grammar checker that checks plain text, please explain how to you extract the text. catdvi does a nice job, but it leaves some garbage like page numbers.
| https://tex.stackexchange.com/users/1527 | Grammar-checking tool for use with LaTeX? | false | For Visusal Studio code, the [LTeX – LanguageTool grammar/spell checking](https://marketplace.visualstudio.com/items?itemName=valentjn.vscode-ltex) does a great job for both LaTeX and Markdown files.
| 1 | https://tex.stackexchange.com/users/9075 | 684017 | 317,330 |
https://tex.stackexchange.com/questions/684015 | 5 | The following code compiles and generates the pdf properly:
```
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\zero}{\overline{0}}
\begin{document}
Writing $V_\alpha$ does not give problems.
\end{document}
```
However, the following code does give problems:
```
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\zero}{\overline{0}}
\begin{document}
Writing $V_\zero$ gives problems.
\end{document}
```
Why is that? Is there any way to make `\zero` work like `\alpha`?
| https://tex.stackexchange.com/users/12484 | Why not using curly braces with operators made with \DeclareMathOperator give problems? | true | In the *TeXBook*, p. 128, it's said : *Notice that ^ and \_ apply only to the next single character*.
Therefore, the fact that `V_\alpha` works should probably be considered as an exception. Remark that the standard definition of `\alpha` is `\mathchar"010B`.
With a macro, defined in raw TeX by `\def`, it does not work (at least, it does not always work) since, with `\def\zero{}`, you can't write `V_\zero`.
Remark also that what follows `^` of `_` is not treated by TeX as the argument of a macro. The characters `^` and `_` are very special (as special, let's say, as `{` or `#`). The catcode of `^` is 7 and the catcode of `_` is 8 (whereas, for example, the catcode of `{` is 1, etc.). That means that you should not expect `^` and `{` to have the behaviour of a macro (even a character with catcode 13 which behaves as a macro).
Many people would probably recommend writing `V_{\alpha}` (as they recommend writing `\frac{1}{2}` instead of `\frac12` — which works...).
| 4 | https://tex.stackexchange.com/users/163000 | 684019 | 317,332 |
https://tex.stackexchange.com/questions/683961 | 1 | Thanks to this amazing community here I have gotten pretty far with my thesis document, but this problem has had me scratching my head for a while. I have only been able to use `\resizebox` for this table. That however messes up with the footnote I need to use and renders it quite strange.
I have tried `\longtable` package, but when I tried that with this table, I got an `undefined control sequense` pointing me to `\end{longtable}`. There might be some package michmach causing that.
I have also tried to use `tabularray` package, with `siunitx`, but `siunitx` throws up an error telling me it can't read the numbers in my table. That is probably due to some PATH issues. I haven't been able to pinpoint that out. I did delete all TexLive and LaTeX packages I could find on my system and reinstalled all of the packages, but it did not work. Due to time shortage, I am not going to follow up more on this error.
I do not want to render this table in landscape.
Now few of these headings are quite long, but due to nature of my native language and what information I am trying to come across, it is not possible to shorten them, so wraping is essential.
Here are all the packages and the table in entirety:
```
\documentclass[a4paper,12pt,twoside,BCOR=10mm]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[icelandic]{babel}
% \usepackage{t1enc}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx,booktabs}
\usepackage[intoc]{nomencl}
\usepackage{enumerate,color}
\usepackage{url}
\usepackage{appendix}
\usepackage{float}
\usepackage{eso-pic}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{longtable}
\usepackage{acronym}
\usepackage{nicematrix}
\usepackage{makecell}
% \usepackage{tablefootnote}
\usepackage{threeparttable}
\usepackage{placeins}
% \usepackage{tabularx,booktabs}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{adjustbox}
\usepackage{subcaption}
%\usepackage{subfig}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{external}
% Packages used for title page layout
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage[pdfborder={0 0 0}]{hyperref}
\usepackage{scrextend}
\usepackage{lmodern} % Use Latin Modern (instead of the default Computer Modern that is rendered using a bitmap font).
\usepackage{fixcmex} % To fix that Latin Modern large symbol math fonts has by default only one size: https://tex.stackexchange.com/a/621536
% Times new roman font instead of the standard LaTeX fonts: has not been test -- try this on your own risk
%\usepackage{mathptmx}
\usepackage[backend=biber, style=authoryear]{biblatex} % BibLaTeX used for references.
\usepackage{csquotes} % BibLaTex wants to have context sensitive quotes
\begin{document}
\begin{table}
\centering
{\small\renewcommand{\arraystretch}{.8}
\caption{Spá um raforkunotkun, forgangsorka og skerðanleg orka. Almenn notkun að meðtöldum dreifitöpum og núverandi og samþykktir nýir stórnotendur. \label{table:Orkuspá}}
\scriptsize\tabcolsep=2pt
\resizebox{!}{.31\paperheight}{
\begin{threeparttable}
\begin{NiceTabular}{lcccccccccc}
\hline
\Block{2-1}{Ár} & \Block{1-2}{Úttekt frá dreifikerfinu\\ forgangs- og skerðanleg\\ orka með dreifitöpum} & & \Block{1-2}{Úttekt frá\\ flutningskerfinu} & & \Block{1-2}{Flutningstöp} & & \Block{1-2}{Úttekt frá \\ vinnslufyrirtækjum} & & \Block{1-2}{Samtals} \\
& Orka GWh & Afl MW & Orka GWh & Afl MW & Orka GWh & Afl MW & Orka GWh & Afl MW & Orka GWh & Afl MW \\
\hline
2015 \tnote{*} & 3.604,74 & 618,46 & 14.356,34 & 1.685,89 & 369,56 & 57,11 & 468,32 & 75,40 & 18.798,96 & 2.383,25 \\
2016 \tnote{*} & 3.383,99 & 590,10 & 14.334,19 & 1.695,96 & 360,42 & 57,05 & 470,86 & 71,46 & 18.549,46 & 2.378,51 \\
2017 \tnote{*} & 3.519,13 & 608,86 & 14.869,95 & 1.750,87 & 373,07 & 61,49 & 476,38 & 84,74 & 19.238,53 & 2.443,61 \\
2018 \tnote{*} & 3.682,07 & 623,26 & 15.259,88 & 1.838,28 & 398,09 & 70,47 & 489,75 & 70,71 & 19.829,79 & 2.519,53 \\
2019 \tnote{*} & 3.506,86 & 596,63 & 15.145,31 & 1.829,48 & 365,82 & 63,40 & 476,84 & 85,11 & 19.494,83 & 2.495,07 \\
2020 \tnote{*} & 3.473,77 & 596,83 & 14.830,70 & 1.790,95 & 353,09 & 60,54 & 469,74 & 72,27 & 19.127,30 & 2.408,28 \\
2021 & 3.688,10 & 630,47 & 15.539,59 & 1.865,64 & 397,70 & 67,72 & 479,82 & 73,82 & 20.105,21 & 2.584,89 \\
2022 & 3.785,98 & 647,81 & 16.099,28 & 1.875,76 & 416,40 & 69,68 & 490,14 & 75,41 & 20.791,80 & 2.615,29 \\
2023 & 3.901,70 & 668,25 & 16.260,20 & 1.893,98 & 427,58 & 70,34 & 500,66 & 77,02 & 21.090,13 & 2.655,40 \\
2024 & 3.991,75 & 684,32 & 16.325,85 & 1.899,97 & 436,37 & 70,59 & 511,28 & 78,66 & 21.265,25 & 2.678,87 \\
2025 & 4.062,50 & 697,11 & 16.343,42 & 1.903,47 & 443,82 & 70,62 & 521,72 & 80,27 & 21.371,46 & 2.696,43 \\
2026 & 4.122,77 & 708,12 & 16.343,42 & 1.903,47 & 450,61 & 70,54 & 526,76 & 81,04 & 21.443,55 & 2.707,91 \\
2027 & 4.211,88 & 724,11 & 16.343,42 & 1.903,47 & 458,05 & 70,57 & 531,45 & 81,76 & 21.544,79 & 2.724,32 \\
2028 & 4.296,04 & 739,29 & 16.342,96 & 1.903,47 & 465,42 & 70,58 & 536,08 & 82,47 & 21.640,51 & 2.739,90 \\
2029 & 4.411,85 & 759,94 & 16.342,96 & 1.903,47 & 473,55 & 70,71 & 540,85 & 83,21 & 21.769,21 & 2.760,98 \\
2030 & 4.532,38 & 781,44 & 16.342,96 & 1.903,47 & 481,86 & 70,86 & 545,67 & 83,95 & 21.902,87 & 2.782,93 \\
2031 & 4.620,14 & 795,89 & 16.342,96 & 1.903,47 & 481,69 & 70,84 & 550,32 & 84,66 & 21.995,11 & 2.797,77 \\
2032 & 4.717,78 & 812,01 & 16.342,96 & 1.903,47 & 481,73 & 70,84 & 555,02 & 85,39 & 22.097,48 & 2.814,28 \\
2033 & 4.812,21 & 827,55 & 16.342,96 & 1.903,47 & 481,67 & 70,83 & 559,78 & 86,12 & 22.196,62 & 2.830,22 \\
2034 & 4.902,86 & 842,42 & 16.342,96 & 1.903,47 & 481,51 & 70,81 & 564,68 & 86,87 & 22.292,01 & 2.845,50 \\
2035 & 4.989,20 & 856,51 & 16.342,96 & 1.903,47 & 481,24 & 70,77 & 569,72 & 87,65 & 22.383,12 & 2.860,04 \\
2036 & 5.072,75 & 870,11 & 16.342,96 & 1.903,47 & 480,89 & 70,72 & 574,87 & 88,44 & 22.471,48 & 2.874,09 \\
2037 & 5.152,14 & 882,97 & 16.342,96 & 1.903,47 & 480,43 & 70,65 & 580,05 & 89,24 & 22.555,59 & 2.887,41 \\
2038 & 5.228,32 & 895,26 & 16.342,96 & 1.903,47 & 479,89 & 70,57 & 585,32 & 90,05 & 22.636,49 & 2.900,17 \\
2039 & 5.302,08 & 907,11 & 16.342,96 & 1.903,47 & 479,29 & 70,48 & 590,68 & 90,87 & 22.715,00 & 2.912,50 \\
2040 & 5.405,41 & 924,00 & 16.342,96 & 1.903,47 & 479,30 & 70,49 & 596,13 & 91,71 & 22.823,81 & 2.929,88 \\
2041 & 5.478,79 & 935,75 & 16.342,96 & 1.903,47 & 478,65 & 70,39 & 601,62 & 92,56 & 22.902,03 & 2.942,12 \\
2042 & 5.552,10 & 947,46 & 16.342,96 & 1.903,47 & 477,99 & 70,29 & 607,11 & 93,40 & 22.980,15 & 2.954,33 \\
2043 & 5.626,68 & 959,37 & 16.342,96 & 1.903,47 & 477,33 & 70,20 & 612,60 & 94,25 & 23.059,57 & 2.966,73 \\
2044 & 5.703,24 & 971,59 & 16.342,96 & 1.903,47 & 476,71 & 70,10 & 618,20 & 95,11 & 23.141,10 & 2.979,47 \\
2045 & 5.782,58 & 984,27 & 16.342,96 & 1.903,47 & 476,12 & 70,02 & 623,90 & 95,98 & 23.225,56 & 2.992,67 \\
2046 & 5.864,53 & 997,37 & 16.342,96 & 1.903,47 & 475,58 & 69,94 & 629,65 & 96,87 & 23.312,72 & 3.006,30 \\
2047 & 5.948,06 & 1.010,72 & 16.342,96 & 1.903,47 & 475,05 & 69,86 & 635,38 & 97,75 & 23.401,45 & 3.020,16 \\
2048 & 6.033,38 & 1.024,34 & 16.342,96 & 1.903,47 & 474,54 & 69,79 & 641,24 & 98,65 & 23.492,13 & 3.034,33 \\
2049 & 6.119,59 & 1.038,10 & 16.342,96 & 1.903,47 & 474,03 & 69,71 & 647,11 & 99,56 & 23.583,69 & 3.048,62 \\
2050 & 6.207,13 & 1.052,06 & 16.342,96 & 1.903,47 & 473,53 & 69,64 & 653,00 & 100,46 & 23.676,62 & 3.063,11 \\
2051 & 6.298,36 & 1.067,52 & 16.342,96 & 1.903,47 & 475,50 & 69,93 & 658,16 & 101,26 & 23.774,98 & 3.079,33 \\
2052 & 6.389,36 & 1.082,94 & 16.342,96 & 1.903,47 & 477,46 & 70,22 & 663,38 & 102,06 & 23.873,16 & 3.095,51 \\
2053 & 6.479,88 & 1.098,29 & 16.342,96 & 1.903,47 & 479,42 & 70,50 & 668,64 & 102,87 & 23.970,91 & 3.111,63 \\
2054 & 6.569,42 & 1.113,46 & 16.342,96 & 1.903,47 & 481,35 & 70,79 & 673,96 & 103,69 & 24.067,70 & 3.127,58 \\
2055 & 6.657,82 & 1.128,44 & 16.342,96 & 1.903,47 & 483,27 & 71,07 & 679,34 & 104,51 & 24.163,39 & 3.143,35 \\
2056 & 6.744,86 & 1.143,20 & 16.342,96 & 1.903,47 & 485,15 & 71,35 & 684,76 & 105,35 & 24.257,74 & 3.158,90 \\
2057 & 6.830,19 & 1.157,66 & 16.342,96 & 1.903,47 & 487,01 & 71,62 & 690,25 & 106,19 & 24.350,41 & 3.174,16 \\
2058 & 6.913,30 & 1.171,75 & 16.342,96 & 1.903,47 & 488,82 & 71,88 & 695,78 & 107,04 & 24.440,86 & 3.189,06 \\
2059 & 6.993,67 & 1.185,37 & 16.342,96 & 1.903,47 & 490,57 & 72,14 & 701,37 & 107,90 & 24.528,57 & 3.203,51 \\
2060 & 7.071,89 & 1.198,63 & 16.342,96 & 1.903,47 & 492,28 & 72,39 & 707,02 & 108,77 & 24.614,16 & 3.217,60 \\
\textbf{2061} & \textbf{7.172,96} & \textbf{1.214,87} & \textbf{16.398,49} & \textbf{1.907,18} & \textbf{496,07} & \textbf{71,07} & \textbf{712,49} & \textbf{109,61} & \textbf{24.780,01} & \textbf{3.236,67} \\
\textbf{2062} & \textbf{7.258,87} & \textbf{1.229,10} & \textbf{16.402,60} & \textbf{1.907,46} & \textbf{497,27} & \textbf{71,09} & \textbf{717,97} & \textbf{110,46} & \textbf{24.876,71} & \textbf{3.251,74} \\
\textbf{2063} & \textbf{7.344,78} & \textbf{1.243,34} & \textbf{16.406,71} & \textbf{1.907,73} & \textbf{498,47} & \textbf{71,12} & \textbf{723,45} & \textbf{111,30} & \textbf{24.973,41} & \textbf{3.266,82} \\
\textbf{2064} & \textbf{7.430,69} & \textbf{1.257,57} & \textbf{16.410,81} & \textbf{1.908,01} & \textbf{499,67} & \textbf{71,14} & \textbf{728,94} & \textbf{112,14} & \textbf{25.070,11} & \textbf{3.281,89} \\
\textbf{2065} & \textbf{7.516,60} & \textbf{1.271,80} & \textbf{16.414,92} & \textbf{1.908,29} & \textbf{500,87} & \textbf{71,17} & \textbf{734,42} & \textbf{112,99} & \textbf{25.166,80} & \textbf{3.296,96} \\
\textbf{2066} & \textbf{7.602,51} & \textbf{1.286,04} & \textbf{16.419,02} & \textbf{1.908,56} & \textbf{502,07} & \textbf{71,20} & \textbf{739,90} & \textbf{113,83} & \textbf{25.263,50} & \textbf{3.312,04} \\
\textbf{2067} & \textbf{7.688,41} & \textbf{1.300,27} & \textbf{16.423,13} & \textbf{1.908,84} & \textbf{503,27} & \textbf{71,22} & \textbf{745,39} & \textbf{114,67} & \textbf{25.360,20} & \textbf{3.327,11} \\
\textbf{2068} & \textbf{7.772,08} & \textbf{1.313,81} & \textbf{16.395,02} & \textbf{1.907,70} & \textbf{502,13} & \textbf{71,14} & \textbf{750,25} & \textbf{115,42} & \textbf{25.456,90} & \textbf{3.342,18} \\
\textbf{2069} & \textbf{7.855,96} & \textbf{1.327,38} & \textbf{16.387,86} & \textbf{1.906,81} & \textbf{501,46} & \textbf{71,14} & \textbf{755,25} & \textbf{116,19} & \textbf{25.553,60} & \textbf{3.357,25} \\
\textbf{2070} & \textbf{7.940,94} & \textbf{1.341,16} & \textbf{16.386,68} & \textbf{1.906,59} & \textbf{500,99} & \textbf{71,16} & \textbf{760,41} & \textbf{116,99} & \textbf{25.650,29} & \textbf{3.372,33} \\
\textbf{2071} & \textbf{8.026,03} & \textbf{1.354,96} & \textbf{16.388,08} & \textbf{1.906,60} & \textbf{500,68} & \textbf{71,19} & \textbf{765,78} & \textbf{117,81} & \textbf{25.746,99} & \textbf{3.387,40} \\
\hline
\end{NiceTabular}
\begin{tablenotes}
\item[*]Rauntölur
\end{tablenotes}
\end{threeparttable}}}
\end{table}
\end{document}
```
I am not very experienced with LaTeX, and I don't know which packages play badly or well with other.
If it is possible to cram this table in one page without rezisebox, I am all ears, but if not, then this is only in appendix.
Edit: 20023-04-26(YYYY-MM-DD)
Tried to put up `tabularx` environment, got an error `missing number: treated as zero` at `\begin{tabularx}`. Uncomment `\usepackage{tabularx}` from code above. Here is how I call the funciton:
```
\begin{table}
\centering
\caption{one more time}
\begin{threeparttable}
\begin{tabularx}{*{11}{X}}
\toprule
THE TABLE FROM ABOVE
\bottomrule
\end{tabularx}
\begin{tablenotes}
\item[*]Rauntölur
\end{tablenotes}
\end{threeparttable}
\end{table}
```
| https://tex.stackexchange.com/users/289862 | Need some help fitting large table in one page not using resizebox | true | Provisional answer as code can't be uploaded in *Chat*:
```
\documentclass[a4paper,12pt,twoside,BCOR=10mm]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[icelandic]{babel}
\usepackage[dvipsnames]{xcolor}
\usepackage{enumerate}
\usepackage{appendix}
\usepackage{float}
\usepackage{eso-pic}
\usepackage{acronym}
\usepackage{adjustbox}
\usepackage{subcaption}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{external}
% Packages used for title page layout
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage[pdfborder={0 0 0}]{hyperref}
\usepackage{scrextend}
\usepackage{lmodern} % Use Latin Modern (instead of the default Computer Modern that is rendered using a bitmap font).
\usepackage{fixcmex} % To fix that Latin Modern large symbol math fonts has by default only one size: https://tex.stackexchange.com/a/621536
\usepackage[backend=biber, style=authoryear]{biblatex} % BibLaTeX used for references.
\usepackage{csquotes} % BibLaTex wants to have context sensitive quotes
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs,siunitx,varwidth}
\sisetup{detect-all,
%input-ignore={.},
group-separator = {.},
group-minimum-digits=4,
input-decimal-markers={,},
output-decimal-marker = {,},
table-alignment-mode=marker,
table-number-alignment=center,
}
\begin{document}
\hspace{5mm}
\scalebox{0.63}{
\begin{minipage}{0.1\textwidth}
\begin{longtblr}[
caption = {Spá um raforkunotkun, forgangsorka og skerðanleg orka. Almenn notkun að meðtöldum dreifitöpum og núverandi og samþykktir nýir stórnotendur.},
label = {table:Orkuspá},
note{*} = {Rauntölur}]{
colspec = {l *{10}{c}},
hline{1,3,Z} = {1pt,solid},
row{47-Z} = {font=\bfseries},
row{1,3} = {abovesep=4pt},
measure = vbox
}
\SetCell[r=2]{c,m} Ár & \SetCell[c=2]{c} Úttekt frá dreifikerfinu\newline forgangs- og skerðanleg\newline orka með dreifitöpum & & \SetCell[c=2]{c}Úttekt frá\newline flutningskerfinu & & \SetCell[c=2]{c} Flutningstöp & & \SetCell[c=2]{c} Úttekt frá\newline vinnslufyrirtækjum & & \SetCell[c=2]{c} Samtals & \\
& Orka \unit{GWh} & Afl \unit{MW} & Orka \unit{GWh} & Afl \unit{MW} & Orka \unit{GWh} & Afl \unit{MW} & Orka \unit{GWh} & Afl \unit{MW} & Orka \unit{GWh} & Afl \unit{MW} \\
2015 \TblrNote{*} & 3.604,74 & 618,46 & 14.356,34 & 1.685,89 & 369,56 & 57,11 & 468,32 & 75,40 & 18.798,96 & 2.383,25 \\
2016 \TblrNote{*} & 3.383,99 & 590,10 & 14.334,19 & 1.695,96 & 360,42 & 57,05 & 470,86 & 71,46 & 18.549,46 & 2.378,51 \\
2017 \TblrNote{*} & 3.519,13 & 608,86 & 14.869,95 & 1.750,87 & 373,07 & 61,49 & 476,38 & 84,74 & 19.238,53 & 2.443,61 \\
2018 \TblrNote{*} & 3.682,07 & 623,26 & 15.259,88 & 1.838,28 & 398,09 & 70,47 & 489,75 & 70,71 & 19.829,79 & 2.519,53 \\
2019 \TblrNote{*} & 3.506,86 & 596,63 & 15.145,31 & 1.829,48 & 365,82 & 63,40 & 476,84 & 85,11 & 19.494,83 & 2.495,07 \\
2020 \TblrNote{*} & 3.473,77 & 596,83 & 14.830,70 & 1.790,95 & 353,09 & 60,54 & 469,74 & 72,27 & 19.127,30 & 2.408,28 \\
2021 & 3.688,10 & 630,47 & 15.539,59 & 1.865,64 & 397,70 & 67,72 & 479,82 & 73,82 & 20.105,21 & 2.584,89 \\
2022 & 3.785,98 & 647,81 & 16.099,28 & 1.875,76 & 416,40 & 69,68 & 490,14 & 75,41 & 20.791,80 & 2.615,29 \\
2023 & 3.901,70 & 668,25 & 16.260,20 & 1.893,98 & 427,58 & 70,34 & 500,66 & 77,02 & 21.090,13 & 2.655,40 \\
2024 & 3.991,75 & 684,32 & 16.325,85 & 1.899,97 & 436,37 & 70,59 & 511,28 & 78,66 & 21.265,25 & 2.678,87 \\
2025 & 4.062,50 & 697,11 & 16.343,42 & 1.903,47 & 443,82 & 70,62 & 521,72 & 80,27 & 21.371,46 & 2.696,43 \\
2026 & 4.122,77 & 708,12 & 16.343,42 & 1.903,47 & 450,61 & 70,54 & 526,76 & 81,04 & 21.443,55 & 2.707,91 \\
2027 & 4.211,88 & 724,11 & 16.343,42 & 1.903,47 & 458,05 & 70,57 & 531,45 & 81,76 & 21.544,79 & 2.724,32 \\
2028 & 4.296,04 & 739,29 & 16.342,96 & 1.903,47 & 465,42 & 70,58 & 536,08 & 82,47 & 21.640,51 & 2.739,90 \\
2029 & 4.411,85 & 759,94 & 16.342,96 & 1.903,47 & 473,55 & 70,71 & 540,85 & 83,21 & 21.769,21 & 2.760,98 \\
2030 & 4.532,38 & 781,44 & 16.342,96 & 1.903,47 & 481,86 & 70,86 & 545,67 & 83,95 & 21.902,87 & 2.782,93 \\
2031 & 4.620,14 & 795,89 & 16.342,96 & 1.903,47 & 481,69 & 70,84 & 550,32 & 84,66 & 21.995,11 & 2.797,77 \\
2032 & 4.717,78 & 812,01 & 16.342,96 & 1.903,47 & 481,73 & 70,84 & 555,02 & 85,39 & 22.097,48 & 2.814,28 \\
2033 & 4.812,21 & 827,55 & 16.342,96 & 1.903,47 & 481,67 & 70,83 & 559,78 & 86,12 & 22.196,62 & 2.830,22 \\
2034 & 4.902,86 & 842,42 & 16.342,96 & 1.903,47 & 481,51 & 70,81 & 564,68 & 86,87 & 22.292,01 & 2.845,50 \\
2035 & 4.989,20 & 856,51 & 16.342,96 & 1.903,47 & 481,24 & 70,77 & 569,72 & 87,65 & 22.383,12 & 2.860,04 \\
2036 & 5.072,75 & 870,11 & 16.342,96 & 1.903,47 & 480,89 & 70,72 & 574,87 & 88,44 & 22.471,48 & 2.874,09 \\
2037 & 5.152,14 & 882,97 & 16.342,96 & 1.903,47 & 480,43 & 70,65 & 580,05 & 89,24 & 22.555,59 & 2.887,41 \\
2038 & 5.228,32 & 895,26 & 16.342,96 & 1.903,47 & 479,89 & 70,57 & 585,32 & 90,05 & 22.636,49 & 2.900,17 \\
2039 & 5.302,08 & 907,11 & 16.342,96 & 1.903,47 & 479,29 & 70,48 & 590,68 & 90,87 & 22.715,00 & 2.912,50 \\
2040 & 5.405,41 & 924,00 & 16.342,96 & 1.903,47 & 479,30 & 70,49 & 596,13 & 91,71 & 22.823,81 & 2.929,88 \\
2041 & 5.478,79 & 935,75 & 16.342,96 & 1.903,47 & 478,65 & 70,39 & 601,62 & 92,56 & 22.902,03 & 2.942,12 \\
2042 & 5.552,10 & 947,46 & 16.342,96 & 1.903,47 & 477,99 & 70,29 & 607,11 & 93,40 & 22.980,15 & 2.954,33 \\
2043 & 5.626,68 & 959,37 & 16.342,96 & 1.903,47 & 477,33 & 70,20 & 612,60 & 94,25 & 23.059,57 & 2.966,73 \\
2044 & 5.703,24 & 971,59 & 16.342,96 & 1.903,47 & 476,71 & 70,10 & 618,20 & 95,11 & 23.141,10 & 2.979,47 \\
2045 & 5.782,58 & 984,27 & 16.342,96 & 1.903,47 & 476,12 & 70,02 & 623,90 & 95,98 & 23.225,56 & 2.992,67 \\
2046 & 5.864,53 & 997,37 & 16.342,96 & 1.903,47 & 475,58 & 69,94 & 629,65 & 96,87 & 23.312,72 & 3.006,30 \\
2047 & 5.948,06 & 1.010,72 & 16.342,96 & 1.903,47 & 475,05 & 69,86 & 635,38 & 97,75 & 23.401,45 & 3.020,16 \\
2048 & 6.033,38 & 1.024,34 & 16.342,96 & 1.903,47 & 474,54 & 69,79 & 641,24 & 98,65 & 23.492,13 & 3.034,33 \\
2049 & 6.119,59 & 1.038,10 & 16.342,96 & 1.903,47 & 474,03 & 69,71 & 647,11 & 99,56 & 23.583,69 & 3.048,62 \\
2050 & 6.207,13 & 1.052,06 & 16.342,96 & 1.903,47 & 473,53 & 69,64 & 653,00 & 100,46 & 23.676,62 & 3.063,11 \\
2051 & 6.298,36 & 1.067,52 & 16.342,96 & 1.903,47 & 475,50 & 69,93 & 658,16 & 101,26 & 23.774,98 & 3.079,33 \\
2052 & 6.389,36 & 1.082,94 & 16.342,96 & 1.903,47 & 477,46 & 70,22 & 663,38 & 102,06 & 23.873,16 & 3.095,51 \\
2053 & 6.479,88 & 1.098,29 & 16.342,96 & 1.903,47 & 479,42 & 70,50 & 668,64 & 102,87 & 23.970,91 & 3.111,63 \\
2054 & 6.569,42 & 1.113,46 & 16.342,96 & 1.903,47 & 481,35 & 70,79 & 673,96 & 103,69 & 24.067,70 & 3.127,58 \\
2055 & 6.657,82 & 1.128,44 & 16.342,96 & 1.903,47 & 483,27 & 71,07 & 679,34 & 104,51 & 24.163,39 & 3.143,35 \\
2056 & 6.744,86 & 1.143,20 & 16.342,96 & 1.903,47 & 485,15 & 71,35 & 684,76 & 105,35 & 24.257,74 & 3.158,90 \\
2057 & 6.830,19 & 1.157,66 & 16.342,96 & 1.903,47 & 487,01 & 71,62 & 690,25 & 106,19 & 24.350,41 & 3.174,16 \\
2058 & 6.913,30 & 1.171,75 & 16.342,96 & 1.903,47 & 488,82 & 71,88 & 695,78 & 107,04 & 24.440,86 & 3.189,06 \\
2059 & 6.993,67 & 1.185,37 & 16.342,96 & 1.903,47 & 490,57 & 72,14 & 701,37 & 107,90 & 24.528,57 & 3.203,51 \\
2060 & 7.071,89 & 1.198,63 & 16.342,96 & 1.903,47 & 492,28 & 72,39 & 707,02 & 108,77 & 24.614,16 & 3.217,60 \\
2061 & 7.172,96 & 1.214,87 & 16.398,49 & 1.907,18 & 496,07 & 71,07 & 712,49 & 109,61 & 24.780,01 & 3.236,67\\
2062 & 7.258,87 & 1.229,10 & 16.402,60 & 1.907,46 & 497,27 & 71,09 & 717,97 & 110,46 & 24.876,71 & 3.251,74\\
2063 & 7.344,78 & 1.243,34 & 16.406,71 & 1.907,73 & 498,47 & 71,12 & 723,45 & 111,30 & 24.973,41 & 3.266,82\\
2064 & 7.430,69 & 1.257,57 & 16.410,81 & 1.908,01 & 499,67 & 71,14 & 728,94 & 112,14 & 25.070,11 & 3.281,89\\
2065 & 7.516,60 & 1.271,80 & 16.414,92 & 1.908,29 & 500,87 & 71,17 & 734,42 & 112,99 & 25.166,80 & 3.296,96\\
2066 & 7.602,51 & 1.286,04 & 16.419,02 & 1.908,56 & 502,07 & 71,20 & 739,90 & 113,83 & 25.263,50 & 3.312,04\\
2067 & 7.688,41 & 1.300,27 & 16.423,13 & 1.908,84 & 503,27 & 71,22 & 745,39 & 114,67 & 25.360,20 & 3.327,11\\
2068 & 7.772,08 & 1.313,81 & 16.395,02 & 1.907,70 & 502,13 & 71,14 & 750,25 & 115,42 & 25.456,90 & 3.342,18\\
2069 & 7.855,96 & 1.327,38 & 16.387,86 & 1.906,81 & 501,46 & 71,14 & 755,25 & 116,19 & 25.553,60 & 3.357,25\\
2070 & 7.940,94 & 1.341,16 & 16.386,68 & 1.906,59 & 500,99 & 71,16 & 760,41 & 116,99 & 25.650,29 & 3.372,33\\
2071 & 8.026,03 & 1.354,96 & 16.388,08 & 1.906,60 & 500,68 & 71,19 & 765,78 & 117,81 & 25.746,99 & 3.387,40
\end{longtblr}
\end{minipage}
}
\end{document}
```
**EDIT** in the chat room the issue has been discussed some further. Several tables contained currency columns. In order to correctly align the currency symbol and the values inside the columns, the setup of `siunitx` had to be changed to:
```
\sisetup{detect-all,
group-separator = {.},
output-decimal-marker = {,},
}
```
This change does NOT affect the rendering of the table in this answer.
| 3 | https://tex.stackexchange.com/users/189383 | 684023 | 317,334 |
https://tex.stackexchange.com/questions/684009 | -2 |
```
\documentclass[a4paper,12pt,]{book}
\usepackage{graphicx}
\usepackage[inner=1.3cm, outer=1.3cm, top=2cm, bottom=2cm, bindingoffset=1cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\begin{document}
\title{Chapter 3}
\author{Akor Eleojo Rachel}
\maketitle
Consider the Linear Multi-step Method:
\begin{equation}
\begin{split}
y(x) =& \alpha_{0}(x)y_{n} + h\bigg[\beta_{0}(x)f_{n}+\beta_{1}(x)f_{n+1}+\beta_{\frac{3}{2}}(x)f_{n+\frac{3}{2}}+\beta_{2}(x)f_{n+2}+\beta_{\frac{5}{2}}(x)f_{n+\frac{5}{2}}+\beta_{3}(x)f_{n+3}+\beta_{\frac{7}{2}}(x)f_{n+\frac{7}{2}} \\ =\ &+\beta_{4}(x)f_{n+4}+\beta_{\frac{9}{2}}(x)f_{n+\frac{9}{2}}\bigg]
\end{split}
\end{equation}
\begin{equation}
A=\begin{bmatrix}
1 & {x_n} & {{x_n}^{2}} & {{x_n}^{3}} & {{x_n}^{4}} & {{x_n}^{5}} & {{x_n}^{6}} & {{x_n}^{7}} & {{x_n}^{8}} & {{x_n}^{9}}\\
0 & 1 & 2 {x_n} & 3 {{x_n}^{2}} & 4 {{x_n}^{3}} & 5 {{x_n}^{4}} & 6 {{x_n}^{5}} & 7 {{x_n}^{6}} & 8 {{x_n}^{7}} & 9 {{x_n}^{8}}\\
0 & 1 & 2 {x_{n+1}} & 3 {{x_{n+1}}^{2}} & 4 {{x_{n+1}}^{3}} & 5 {{x_{n+1}}^{4}} & 6{{x_{n+1}}^{5}} & 7 {{x_{n+1}}^{6}} & 8 {{x_{ n+1}}^{7}} & 9 {{x_{n+1}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{3}{2}}} & 3 {{x_{n+\frac{3}{2}}}^{2}}& 4 {{x_{n+\frac{3}{2}}}^{3}} & 5 {{x_{n+\frac{3}{2}}}^{4}} & 6 {{x_{n+\frac{3}{2}}}^{5}} & 7 {{x_{n+\frac{3}{2}}}^{6}} & 8 {{x_{n+\frac{3}{2}}}^{7}} & 9 {{x_{n+\frac{3}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+2}}& 3 {{x_{n+2}}^{2}} & 4 {{x_{n+2}}^{3}} & 5 {{x_{n+2}}^{4}} & 6 {{x_{ n+2}}^{5}} & 7 {{x_{n+2}}^{6}} & 8 {{x_{n+2}}^{7}} & 9 {{x_{n+2}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{5}{2}}} & 3 {{x_{n+\frac{5}{2}}}^{2}} & 4 {{x_{n+\frac{5}{2}}}^{3}} & 5{{x_{n+\frac{5}{2}}}^{4}} & 6 {{x_{n+\frac{5}{2}}}^{5}} & 7 {{x_{n+\frac{5}{2}}}^{6}} & 8 {{x_{n+\frac{5}{2}}}^{7}} & 9 {{x_{n+\frac{5}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+3}} & 3 {{x_{n+3}}^{2}} & 4 {{x_{n+3}}^{3}} & 5 {{x_{n+3}}^{4}} & 6 {{x_{ n+3} }^{5}} & 7 {{x_{n+3}}^{6}} & 8 {{x_{n+3}}^{7}} & 9 {{x_{n+3}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{7}{2}}} & 3 {{x_{n+\frac{7}{2}}}^{2}} & 4 {{x_{n+\frac{7}{2}}}^{3}} & 5 {{x_{n+\frac{7}{2}}}^{4}} & 6 {{x_{n+\frac{7}{2}}}^{5}} & 7 {{x_{n+\frac{7}{2}}}^{6}} & 8 {{x_{n+\frac{7}{2}}}^{7}} & 9 {{x_{n+\frac{7}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+4}}& 3 {{x_{n+4}}^{2}} & 4 {{x_{n+4}}^{3}} & 5 {{x_{n+4}}^{4}} & 6{{x_{ n+4} }^{5}} & 7 {{x_{n+4}}^{6}} & 8 {{x_{n+4}}^{7}} & 9 {{x_{n+4}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{9}{2}}} & 3 {{x_{n+\frac{9}{2}}}^{2}} & 4 {{x_{n+\frac{9}{2}}}^{3}} & 5 {{x_{ n+\frac{9}{2}}}^{4}} & 6 {{x_{n+\frac{9}{2}}}^{5}} & 7 {{x_{n+\frac{9}{2}}}^{6}} & 8 {{x_{n+\frac{9}{2}}}^{7}} & 9 {{x_{n+\frac{9}{2}}}^{8}}
\end{bmatrix}
\end{equation}
Replacing: {\large$x_{n}, x_{n+\frac{3}{2}}, x_{n+2}, x_{n+\frac{5}{2}}, x_{n+3}, x_{n+\frac{7}{2}}, x_{n+4}, x_{n+\frac{9}{2}}$}\\
with: $x_{n+1}-h, x_{n+1}+\frac{1}{2}h, x_{n+1}+h, x_{n+1}+\frac{3}{2}h, x_{n+1}+2h, x_{n+1}+\frac{5}{2}h, x_{n+1}+3h, x_{n+1}+\frac{7}{2}h$\\
we obtain:
\begin{equation}
\label{mat}
B=\begin{bmatrix}
1 & {x_{n+1}-h} & {{(x_{n+1}-h)}^{2}} & {{(x_{n+1}-h)}^{3}} & {{(x_{n+1}-h)}^{4}} & {{(x_{n+1}-h)}^{5}} & {{(x_{n+1}-h)}^{6}} & {{(x_{n+1}-h)}^{7}} & {{(x_{n+1}-h)}^{8}} & {{(x_{n+1}-h)}^{9}}\\
0 & 1 & 2 {(x_{n+1}-h)} & 3 {{(x_{n+1}-h)}^{2}} & 4 {{(x_{n+1}-h)}^{3}} & 5 {{(x_{n+1}-h)}^{4}} & 6 {{(x_{n+1}-h)}^{5}} & 7 {{(x_{n+1}-h)}^{6}} & 8 {{(x_{n+1}-h)}^{7}} & 9 {{(x_{n+1}-h)}^{8}}\\
0 & 1 & 2 {x_{n+1}} & 3 {{x_{n+1}}^{2}} & 4 {{x_{n+1}}^{3}} & 5 {{x_{n+1}}^{4}} & 6{{x_{n+1}}^{5}} & 7 {{x_{n+1}}^{6}} & 8 {{x_{ n+1}}^{7}} & 9 {{x_{n+1}}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{1}{2}h)} & 3 {{(x_{n+1}+\frac{1}{2}h)}^{2}}& 4 {{(x_{n+1}+\frac{1}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{1}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{1}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{1}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{1}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{1}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+h)}& 3 {{(x_{n+1}+h)}^{2}} & 4 {{(x_{n+1}+h)}^{3}} & 5 {{(x_{n+1}+h)}^{4}} & 6 {{(x_{n+1}+h)}^{5}} & 7 {{(x_{n+1}+h)}^{6}} & 8 {{(x_{n+1}+h)}^{7}} & 9 {{(x_{n+1}+h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{3}{2}h)} & 3 {{(x_{n+1}+\frac{3}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{3}{2}h)}^{3}} & 5{{(x_{n+1}+\frac{3}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{3}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{3}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{3}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{3}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+2h)} & 3 {{(x_{n+1}+2h)}^{2}} & 4 {{(x_{n+1}+2h)}^{3}} & 5 {{(x_{n+1}+2h)}^{4}} & 6 {{(x_{n+1}+2h)}^{5}} & 7 {{(x_{n+1}+2h)}^{6}} & 8 {{(x_{n+1}+2h)}^{7}} & 9 {{(x_{n+1}+2h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{5}{2}h)} & 3 {{(x_{n+1}+\frac{5}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{5}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{5}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{5}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{5}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{5}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{5}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+3h)}& 3 {{(x_{n+1}+3h)}^{2}} & 4 {{(x_{n+1}+3h)}^{3}} & 5 {{(x_{n+1}+3h)}^{4}} & 6{{(x_{n+1}+3h)}^{5}} & 7 {{(x_{n+1}+3h)}^{6}} & 8 {{(x_{n+1}+3h)}^{7}} & 9 {{(x_{n+1}+3h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{7}{2}h)} & 3 {{(x_{n+1}+\frac{7}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{7}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{7}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{7}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{7}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{7}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{7}{2}h)}^{8}}
\end{bmatrix}
\end{equation}
The new Matrix is renamed B for ease of reference.\\
\par
The determinant of B is:
\[det (B) =\frac{15380234690625 {{h}^{36}}}{64}\]
The inverse of (\ref{mat}) is the C matrix calculated using \textbf{Maple} codes as shown in the \textbf{Appendix}.
Our only interest in the C matrix is it's first row and the elements are:
\begin{align*}
&c_{11}=1\\
&c_{12}=-\frac{160 {x_{n+1}^9}+2520 h {x_{n+1}^8}+16560 {h^2} {x_{n+1}^7}+58800 {h^3} {x_{n+1}^6}+121842 {h^4} {x_{n+1}^5}+147735 {h^5} {x_{n+1}^4}+98010 {h^6} {x_{n+1sing}^3}+28350 {h^7} {x_{n+1}^2}-473977 {h^9}}{2041200 {h^8}}\\
&c_{13}=\frac{320 {x_{n+1}^9}+4680 h {x_{n+1}^8}+27360 {h^2} {x_{n+1}^7}+78960 {h^3} {x_{n+1}^6}+102564 {h^4} {x_{n+1}^5}-9135 {h^5} {x_{n+1}^4}-197940 {h^6} {x_{n+1}^3}-237330 {h^7} {x_{n+1}^2}-113400 {h^8} {x_{n+1}}+343921 {h^9}}{113400 {h^8}}\\
&c_{14}=-\frac{1120 {x_{n+1}^9}+15750 h {x_{n+1}^8}+86760 {h^2} {x_{n+1}^7}+225750 {h^3} {x_{n+1}^6}+223524 {h^4} {x_{n+1}^5}-171675 {h^5} {x_{n+1}^4}-578340 {h^6} {x_{n+1}^3}-396900 {h^7} {x_{n+1}^2}+594011 {h^9}}{85050 {h^8}}\\
&c_{15}=\frac{560 {x_{n+1}^{9}}+7560 h {x_{n+1}^{8}}+39240 {{h}^{2}} {x_{n+1}^{7}}+92400 {{h}^{3}} {x_{n+1}^{6}}+68607 {{h}^{4}} {x_{n+1}^{5}}-101745 {{h}^{5}} {x_{ n+1}^{4}}-210735 {{h}^{6}} {x_{n+1}^{3}}-99225 {{h}^{7}} {x_{n+1}^{2}}+203338 {{h}^{9}}}{18900 {{h}^{8}}} \\
&c_{16}=-\frac{1120 {x_{n+1}^{9}}+14490 h {x_{n+1}^{8}}+70920 {{h}^{2}} {x_{n+1}^{7}}+152250 {{h}^{3}} {x_{n+1}^{6}}+84924 {{h}^{4}} {x_{n+1}^{5}}-191205 {{h}^{5}} {x_{n+1}^{4}}-310380 {{h}^{6}} {x_{n+1}^{3}}-132300 {{h}^{7}} {x_{n+1}^{2}}+310181 {{h}^{9}}}{28350 {{h}^{8}}}\\
&c_{17}=\frac{2240 {x_{n+1}^{9}}+27720 h {x_{n+1}^{8}}+128160 {{h}^{2}} {x_{n+1}^{7}}+253680 {{h}^{3}} {x_{n+1}^{6}}+109116 {{h}^{4}} {x_{n+1}^{5}}-336735 {{h}^{5}} {x_{n+1}^{4}}-487620 {{h}^{6}} {x_{n+1}^{3}}-198450 {{h}^{7}} {x_{n+1}^{2}}+501889 {{h}^{9}}}{68040 {{h}^{8}}}\\
&c_{18}=-\frac{160 {x_{n+1}^{9}}+1890 h {x_{n+1}^{8}}+8280 {{h}^{2}} {x_{n+1}^{7}}+15330 {{h}^{3}} {x_{n+1}^{6}}+5292 {{h}^{4}} {x_{n+1}^{5}}-21105 {{h}^{5}} {x_{n+1}^{4}}-28620 {{h}^{6}} {x_{n+1}^3}-11340 {{h}^{7}} {x_{n+1}^{2}}+30113 {{h}^{9}}}{9450 {h^8}}\\
&c_{19}=\frac{1120 {x_{n+1}^9}+12600 h {x_{n+1}^8}+52560 {h^2} {x_{n+1}^7}+92400 {h^3} {x_{n+1}^6}+26334 {h^4} {x_{n+1}^5}-130725 {h^5} {x_{n+1}^4}-169890 {h^6} {x_{n+1}^3}-66150 {h^7} {x_{n+1}^2}+181751 {h^9}}{226800 {h^8}}\\
&c_{(10)}=-\frac{160 {x_{n+1}^9}+1710 h {x_{n+1}^8}+6840 {h^2} {x_{n+1}^7}+11550 {h^3} {x_{n+1}^6}+2772 {h^4} {x_{n+1}^5}-16695 {h^5} {x_{n+1}^4}-21060 {h^6} {x_{n+1}^3}-8100 {h^7}{x_{n+1}^2}+22823 {h^9}}{255150{h^8}}
\end{align*}
From the above, we obtain the following continuous coefficients-This is obtained through Maple Codes as shown in the \textbf{Appendix}:
\begin{align*}
&\alpha_{0}(x)=y_{n}\\
&h\beta_{0}(x)=\frac{-160 {{w}^{9}}-2520 h {{w}^{8}}-16560 {{h}^{2}} {{w}^{7}}-58800 {{h}^{3}} {{w}^{6}}-121842 {{h}^{4}} {{w}^{5}}-147735 {{h}^{5}} {{w}^{4}}-98010 {{h}^{6}} {{w}^{3}}-28350 {{h}^{7}} {{w}^{2}}+473977 {{h}^{9}}}{2041200{h^8}}\\
&h\beta_{1}(x)=\frac{320 {{w}^{9}}+4680 h {{w}^{8}}+27360 {{h}^{2}} {{w}^{7}}+78960 {{h}^{3}} {{w}^{6}}+102564 {{h}^{4}} {{w}^{5}}-9135 {{h}^{5}} {{w}^{4}}-197940 {{h}^{6}} {{w}^{3}}-237330 {{h}^{7}} {{w}^{2}}-113400 {{h}^{8}} w+343921 {{h}^{9}}}{113400{h^8}}\\
&h\beta_{\frac{3}{2}}(x)=\frac{-1120 {{w}^{9}}-15750 h {{w}^{8}}-86760 {{h}^{2}} {{w}^{7}}-225750 {{h}^{3}} {{w}^{6}}-223524 {{h}^{4}} {{w}^{5}}+171675 {{h}^{5}} {{w}^{4}}+578340 {{h}^{6}} {{w}^{3}}+396900 {{h}^{7}} {{w}^{2}}-594011 {{h}^{9}}}{85050{h^8}}\\
&h\beta_{2}(x)=\frac{560 {{w}^{9}}+7560 h {{w}^{8}}+39240 {{h}^{2}} {{w}^{7}}+92400 {{h}^{3}} {{w}^{6}}+68607 {{h}^{4}} {{w}^{5}}-101745 {{h}^{5}} {{w}^{4}}-210735 {{h}^{6}} {{w}^{3}}-99225 {{h}^{7}} {{w}^{2}}+203338 {{h}^{9}}}{18900{h^8}}\\
&h\beta_{\frac{5}{2}}(x)=\frac{-1120 {w^9}-14490 h {w^8}-70920 {h^2} {w^7}-152250 {h^3} {w^6}-84924 {h^4} {w^5}+191205 {h^5} {w^4}+310380 {h^6} {w^3}+132300 {h^7} {w^2}-310181 {h^9}}{28350{h^8}}\\
&h\beta_{3}(x)=\frac{2240 {{w}^{9}}+27720 h {{w}^{8}}+128160 {{h}^{2}} {{w}^{7}}+253680 {{h}^{3}} {{w}^{6}}+109116 {{h}^{4}} {{w}^{5}}-336735 {{h}^{5}} {{w}^{4}}-487620 {{h}^{6}} {{w}^{3}}-198450 {{h}^{7}} {{w}^{2}}+501889 {{h}^{9}}}{68040{h^8}}\\
&h\beta_{\frac{7}{2}}(x)=\frac{-160 {{w}^{9}}-1890 h {{w}^{8}}-8280 {{h}^{2}} {{w}^{7}}-15330 {{h}^{3}} {{w}^{6}}-5292 {{h}^{4}} {{w}^{5}}+21105 {{h}^{5}} {{w}^{4}}+28620 {{h}^{6}} {{w}^{3}}+11340 {{h}^{7}} {{w}^{2}}-30113 {{h}^{9}}}{9450{h^8}}\\
&h\beta_{4}(x)=\frac{1120 {{w}^{9}}+12600 h {{w}^{8}}+52560 {{h}^{2}} {{w}^{7}}+92400 {{h}^{3}} {{w}^{6}}+26334 {{h}^{4}} {{w}^{5}}-130725 {{h}^{5}} {{w}^{4}}-169890 {{h}^{6}} {{w}^{3}}-66150 {{h}^{7}} {{w}^{2}}+181751 {{h}^{9}}}{226800{h^8}}\\
&h\beta_{\frac{9}{2}}(x)=\frac{-160 {{w}^{9}}-1710 h {{w}^{8}}-6840 {{h}^{2}} {{w}^{7}}-11550 {{h}^{3}} {{w}^{6}}-2772 {{h}^{4}} {{w}^{5}}+16695 {{h}^{5}} {{w}^{4}}+21060 {{h}^{6}} {{w}^{3}}+8100 {{h}^{7}} {{w}^{2}}-22823 {{h}^{9}}}{255150{h^8}}
\end{align*}
Evaluating the above at \[w=0, w=-\frac{h}{2}, w=-h, w=-\frac{3h}{2}, w=-2, w=-\frac{5h}{2}, w=-3, w=-\frac{7h}{2} \] to obtain the following discrete schemes:
\begin{align*}
&y_{n+1}=\frac{y_{n}}{2041200}+\frac{h}{2041200}\bigg[473977{f_n} +6190578f_{n+1}-14256264 f_{n+\frac{3}{2}}+21960504f_{n+2}-22333032f_{n+\frac{5}{2}}+15056670f_{ n+3}\\
&-6504408 f_{ n+\frac{7}{2}} +1635759 f_{ n+4}-182584 f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{3}{2}}=\frac{y_{n}}{89600}+\frac{h}{89600}\bigg[20759 {f_n} +287046 f_{ n+1} -581818 f_{ n+\frac{3}{2}}+936468 f_{ n+2}-958194 f_{ n+\frac{5}{2}} +647690 f_{ n+3} -280206f_{n+\frac{7}{2}} +70533 f_{ n+4}-7878 f_{ n+\frac{9}{2}}\bigg]\\
&y_{n+2}=\frac{y_{n}}{255150}+\frac{h}{255150}\bigg[59143{f_n}+814932f_{n+1}-1601616f_{\frac{n+3}{2}}+2762856f_{n+2}-2761488f_{\frac{n+5}{2}}+1860780f_{n+3}-803952f_{\frac{n+7}{2}}+202221f_{n+4}-22576f_{\frac{n+9}{2}}\bigg]\\
&y_{n+\frac{5}{2}}=\frac{y_{n}}{2612736}+\frac{h}{2612736}\bigg[605495{f_n}+8353350 f_{ n+1}-16467450 f_{ n+\frac{3}{2}}+28962900 f_{ n+2}-27460530-f_{ n+\frac{5}{2}}+18890250 f_{ n+3}8182350 f_{ n+\frac{7}{2}}\\
&+2060325f_{ n+4}-230150f_{ n+\frac{9}{2}}\bigg]\\
&y_{n+3}=\frac{y_{n}}{2800}+\frac{h}{2800}\bigg[649{f_n}+8946f_{n+1}-17608f_{n+\frac{3}{2}}+30888f_{n+2}-28584f_{n+\frac{5}{2}}+20990f_{n+3}-8856f_{n+\frac{7}{2}}+2223f_{n+4}-248f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{7}{2}}=\frac{y_{n}}{9331200}+\frac{h}{9331200}\bigg[2162377{f_n}+29837178f_{n+1}-58823814f_{n+\frac{3}{2}}+103389804f_{n+2}-96271182f_{n+\frac{5}{2}}+73295670f_{n+3}-27390258f_{n+\frac{7}{2}}\\&+7276059f_{n+4}-816634f_{n+\frac{9}{2}}\bigg]\\
&y_{n+4}=\frac{y_{n}}{127575}+\frac{h}{127575}\bigg[29578{f_n}+407232f_{n+1}-800256f_{n+\frac{3}{2}}+1402056f_{n+2}-1294848f_{n+\frac{5}{2}}+972480f_{n+3}-317952f_{n+\frac{7}{2}}+123786f_{n+4}-11776f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{9}{2}}=\frac{y_{n}}{89600}+\frac{h}{89600}\bigg[20727{f_n}+288198f_{n+1}-574074f_{n+\frac{3}{2}}+1017684f_{n+2}-965682f_{n+\frac{5}{2}}+748170f_{n+3}-278478f_{n+\frac{7}{2}}+141669f_{n+4}4986f_{n+\frac{9}{2}}\bigg]
\end{align*}
\end{document}
```
I initially did this work in landscape, but I need it in portrait. I am at wits end and in a time crunch.
Below is the work I initially did using landscape mode
```
\documentclass[a4paper,12pt,landscape]{book}
\usepackage[inner=1.3cm, outer=1.3cm, top=2cm, bottom=2cm, bindingoffset=1cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\begin{document}
\title{Chapter 3}
\author{Akor Eleojo Rachel}
\maketitle
Consider the Linear Multi-step Method:
\begin{equation}
\begin{split}
y(x) =& \alpha_{0}(x)y_{n} + h\bigg[\beta_{0}(x)f_{n}+\beta_{1}(x)f_{n+1}+\beta_{\frac{3}{2}}(x)f_{n+\frac{3}{2}}+\beta_{2}(x)f_{n+2}+\beta_{\frac{5}{2}}(x)f_{n+\frac{5}{2}}+\beta_{3}(x)f_{n+3}+\beta_{\frac{7}{2}}(x)f_{n+\frac{7}{2}} \\ =\ &+\beta_{4}(x)f_{n+4}+\beta_{\frac{9}{2}}(x)f_{n+\frac{9}{2}}\bigg]
\end{split}
\end{equation}
\begin{equation}
A=\begin{bmatrix}
1 & {x_n} & {{x_n}^{2}} & {{x_n}^{3}} & {{x_n}^{4}} & {{x_n}^{5}} & {{x_n}^{6}} & {{x_n}^{7}} & {{x_n}^{8}} & {{x_n}^{9}}\\
0 & 1 & 2 {x_n} & 3 {{x_n}^{2}} & 4 {{x_n}^{3}} & 5 {{x_n}^{4}} & 6 {{x_n}^{5}} & 7 {{x_n}^{6}} & 8 {{x_n}^{7}} & 9 {{x_n}^{8}}\\
0 & 1 & 2 {x_{n+1}} & 3 {{x_{n+1}}^{2}} & 4 {{x_{n+1}}^{3}} & 5 {{x_{n+1}}^{4}} & 6{{x_{n+1}}^{5}} & 7 {{x_{n+1}}^{6}} & 8 {{x_{ n+1}}^{7}} & 9 {{x_{n+1}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{3}{2}}} & 3 {{x_{n+\frac{3}{2}}}^{2}}& 4 {{x_{n+\frac{3}{2}}}^{3}} & 5 {{x_{n+\frac{3}{2}}}^{4}} & 6 {{x_{n+\frac{3}{2}}}^{5}} & 7 {{x_{n+\frac{3}{2}}}^{6}} & 8 {{x_{n+\frac{3}{2}}}^{7}} & 9 {{x_{n+\frac{3}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+2}}& 3 {{x_{n+2}}^{2}} & 4 {{x_{n+2}}^{3}} & 5 {{x_{n+2}}^{4}} & 6 {{x_{ n+2}}^{5}} & 7 {{x_{n+2}}^{6}} & 8 {{x_{n+2}}^{7}} & 9 {{x_{n+2}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{5}{2}}} & 3 {{x_{n+\frac{5}{2}}}^{2}} & 4 {{x_{n+\frac{5}{2}}}^{3}} & 5{{x_{n+\frac{5}{2}}}^{4}} & 6 {{x_{n+\frac{5}{2}}}^{5}} & 7 {{x_{n+\frac{5}{2}}}^{6}} & 8 {{x_{n+\frac{5}{2}}}^{7}} & 9 {{x_{n+\frac{5}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+3}} & 3 {{x_{n+3}}^{2}} & 4 {{x_{n+3}}^{3}} & 5 {{x_{n+3}}^{4}} & 6 {{x_{ n+3} }^{5}} & 7 {{x_{n+3}}^{6}} & 8 {{x_{n+3}}^{7}} & 9 {{x_{n+3}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{7}{2}}} & 3 {{x_{n+\frac{7}{2}}}^{2}} & 4 {{x_{n+\frac{7}{2}}}^{3}} & 5 {{x_{n+\frac{7}{2}}}^{4}} & 6 {{x_{n+\frac{7}{2}}}^{5}} & 7 {{x_{n+\frac{7}{2}}}^{6}} & 8 {{x_{n+\frac{7}{2}}}^{7}} & 9 {{x_{n+\frac{7}{2}}}^{8}}\\
0 & 1 & 2 {x_{n+4}}& 3 {{x_{n+4}}^{2}} & 4 {{x_{n+4}}^{3}} & 5 {{x_{n+4}}^{4}} & 6{{x_{ n+4} }^{5}} & 7 {{x_{n+4}}^{6}} & 8 {{x_{n+4}}^{7}} & 9 {{x_{n+4}}^{8}}\\
0 & 1 & 2 {x_{n+\frac{9}{2}}} & 3 {{x_{n+\frac{9}{2}}}^{2}} & 4 {{x_{n+\frac{9}{2}}}^{3}} & 5 {{x_{ n+\frac{9}{2}}}^{4}} & 6 {{x_{n+\frac{9}{2}}}^{5}} & 7 {{x_{n+\frac{9}{2}}}^{6}} & 8 {{x_{n+\frac{9}{2}}}^{7}} & 9 {{x_{n+\frac{9}{2}}}^{8}}
\end{bmatrix}
\end{equation}
Replacing: {\large$x_{n}, x_{n+\frac{3}{2}}, x_{n+2}, x_{n+\frac{5}{2}}, x_{n+3}, x_{n+\frac{7}{2}}, x_{n+4}, x_{n+\frac{9}{2}}$}\\
with: $x_{n+1}-h, x_{n+1}+\frac{1}{2}h, x_{n+1}+h, x_{n+1}+\frac{3}{2}h, x_{n+1}+2h, x_{n+1}+\frac{5}{2}h, x_{n+1}+3h, x_{n+1}+\frac{7}{2}h$\\
we obtain:
\begin{equation}
\label{mat}
B=\begin{bmatrix}
1 & {x_{n+1}-h} & {{(x_{n+1}-h)}^{2}} & {{(x_{n+1}-h)}^{3}} & {{(x_{n+1}-h)}^{4}} & {{(x_{n+1}-h)}^{5}} & {{(x_{n+1}-h)}^{6}} & {{(x_{n+1}-h)}^{7}} & {{(x_{n+1}-h)}^{8}} & {{(x_{n+1}-h)}^{9}}\\
0 & 1 & 2 {(x_{n+1}-h)} & 3 {{(x_{n+1}-h)}^{2}} & 4 {{(x_{n+1}-h)}^{3}} & 5 {{(x_{n+1}-h)}^{4}} & 6 {{(x_{n+1}-h)}^{5}} & 7 {{(x_{n+1}-h)}^{6}} & 8 {{(x_{n+1}-h)}^{7}} & 9 {{(x_{n+1}-h)}^{8}}\\
0 & 1 & 2 {x_{n+1}} & 3 {{x_{n+1}}^{2}} & 4 {{x_{n+1}}^{3}} & 5 {{x_{n+1}}^{4}} & 6{{x_{n+1}}^{5}} & 7 {{x_{n+1}}^{6}} & 8 {{x_{ n+1}}^{7}} & 9 {{x_{n+1}}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{1}{2}h)} & 3 {{(x_{n+1}+\frac{1}{2}h)}^{2}}& 4 {{(x_{n+1}+\frac{1}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{1}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{1}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{1}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{1}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{1}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+h)}& 3 {{(x_{n+1}+h)}^{2}} & 4 {{(x_{n+1}+h)}^{3}} & 5 {{(x_{n+1}+h)}^{4}} & 6 {{(x_{n+1}+h)}^{5}} & 7 {{(x_{n+1}+h)}^{6}} & 8 {{(x_{n+1}+h)}^{7}} & 9 {{(x_{n+1}+h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{3}{2}h)} & 3 {{(x_{n+1}+\frac{3}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{3}{2}h)}^{3}} & 5{{(x_{n+1}+\frac{3}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{3}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{3}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{3}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{3}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+2h)} & 3 {{(x_{n+1}+2h)}^{2}} & 4 {{(x_{n+1}+2h)}^{3}} & 5 {{(x_{n+1}+2h)}^{4}} & 6 {{(x_{n+1}+2h)}^{5}} & 7 {{(x_{n+1}+2h)}^{6}} & 8 {{(x_{n+1}+2h)}^{7}} & 9 {{(x_{n+1}+2h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{5}{2}h)} & 3 {{(x_{n+1}+\frac{5}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{5}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{5}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{5}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{5}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{5}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{5}{2}h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+3h)}& 3 {{(x_{n+1}+3h)}^{2}} & 4 {{(x_{n+1}+3h)}^{3}} & 5 {{(x_{n+1}+3h)}^{4}} & 6{{(x_{n+1}+3h)}^{5}} & 7 {{(x_{n+1}+3h)}^{6}} & 8 {{(x_{n+1}+3h)}^{7}} & 9 {{(x_{n+1}+3h)}^{8}}\\
0 & 1 & 2 {(x_{n+1}+\frac{7}{2}h)} & 3 {{(x_{n+1}+\frac{7}{2}h)}^{2}} & 4 {{(x_{n+1}+\frac{7}{2}h)}^{3}} & 5 {{(x_{n+1}+\frac{7}{2}h)}^{4}} & 6 {{(x_{n+1}+\frac{7}{2}h)}^{5}} & 7 {{(x_{n+1}+\frac{7}{2}h)}^{6}} & 8 {{(x_{n+1}+\frac{7}{2}h)}^{7}} & 9 {{(x_{n+1}+\frac{7}{2}h)}^{8}}
\end{bmatrix}
\end{equation}
The new Matrix is renamed B for ease of reference.\\
\par
The determinant of B is:
\[det (B) =\frac{15380234690625 {{h}^{36}}}{64}\]
The inverse of (\ref{mat}) is the C matrix calculated using \textbf{Maple} codes as shown in the \textbf{Appendix}.
Our only interest in the C matrix is it's first row and the elements are:
\begin{align*}
&c_{11}=1\\
&c_{12}=-\frac{160 {x_{n+1}^9}+2520 h {x_{n+1}^8}+16560 {h^2} {x_{n+1}^7}+58800 {h^3} {x_{n+1}^6}+121842 {h^4} {x_{n+1}^5}+147735 {h^5} {x_{n+1}^4}+98010 {h^6} {x_{n+1sing}^3}+28350 {h^7} {x_{n+1}^2}-473977 {h^9}}{2041200 {h^8}}\\
&c_{13}=\frac{320 {x_{n+1}^9}+4680 h {x_{n+1}^8}+27360 {h^2} {x_{n+1}^7}+78960 {h^3} {x_{n+1}^6}+102564 {h^4} {x_{n+1}^5}-9135 {h^5} {x_{n+1}^4}-197940 {h^6} {x_{n+1}^3}-237330 {h^7} {x_{n+1}^2}-113400 {h^8} {x_{n+1}}+343921 {h^9}}{113400 {h^8}}\\
&c_{14}=-\frac{1120 {x_{n+1}^9}+15750 h {x_{n+1}^8}+86760 {h^2} {x_{n+1}^7}+225750 {h^3} {x_{n+1}^6}+223524 {h^4} {x_{n+1}^5}-171675 {h^5} {x_{n+1}^4}-578340 {h^6} {x_{n+1}^3}-396900 {h^7} {x_{n+1}^2}+594011 {h^9}}{85050 {h^8}}\\
&c_{15}=\frac{560 {x_{n+1}^{9}}+7560 h {x_{n+1}^{8}}+39240 {{h}^{2}} {x_{n+1}^{7}}+92400 {{h}^{3}} {x_{n+1}^{6}}+68607 {{h}^{4}} {x_{n+1}^{5}}-101745 {{h}^{5}} {x_{ n+1}^{4}}-210735 {{h}^{6}} {x_{n+1}^{3}}-99225 {{h}^{7}} {x_{n+1}^{2}}+203338 {{h}^{9}}}{18900 {{h}^{8}}} \\
&c_{16}=-\frac{1120 {x_{n+1}^{9}}+14490 h {x_{n+1}^{8}}+70920 {{h}^{2}} {x_{n+1}^{7}}+152250 {{h}^{3}} {x_{n+1}^{6}}+84924 {{h}^{4}} {x_{n+1}^{5}}-191205 {{h}^{5}} {x_{n+1}^{4}}-310380 {{h}^{6}} {x_{n+1}^{3}}-132300 {{h}^{7}} {x_{n+1}^{2}}+310181 {{h}^{9}}}{28350 {{h}^{8}}}\\
&c_{17}=\frac{2240 {x_{n+1}^{9}}+27720 h {x_{n+1}^{8}}+128160 {{h}^{2}} {x_{n+1}^{7}}+253680 {{h}^{3}} {x_{n+1}^{6}}+109116 {{h}^{4}} {x_{n+1}^{5}}-336735 {{h}^{5}} {x_{n+1}^{4}}-487620 {{h}^{6}} {x_{n+1}^{3}}-198450 {{h}^{7}} {x_{n+1}^{2}}+501889 {{h}^{9}}}{68040 {{h}^{8}}}\\
&c_{18}=-\frac{160 {x_{n+1}^{9}}+1890 h {x_{n+1}^{8}}+8280 {{h}^{2}} {x_{n+1}^{7}}+15330 {{h}^{3}} {x_{n+1}^{6}}+5292 {{h}^{4}} {x_{n+1}^{5}}-21105 {{h}^{5}} {x_{n+1}^{4}}-28620 {{h}^{6}} {x_{n+1}^3}-11340 {{h}^{7}} {x_{n+1}^{2}}+30113 {{h}^{9}}}{9450 {h^8}}\\
&c_{19}=\frac{1120 {x_{n+1}^9}+12600 h {x_{n+1}^8}+52560 {h^2} {x_{n+1}^7}+92400 {h^3} {x_{n+1}^6}+26334 {h^4} {x_{n+1}^5}-130725 {h^5} {x_{n+1}^4}-169890 {h^6} {x_{n+1}^3}-66150 {h^7} {x_{n+1}^2}+181751 {h^9}}{226800 {h^8}}\\
&c_{(10)}=-\frac{160 {x_{n+1}^9}+1710 h {x_{n+1}^8}+6840 {h^2} {x_{n+1}^7}+11550 {h^3} {x_{n+1}^6}+2772 {h^4} {x_{n+1}^5}-16695 {h^5} {x_{n+1}^4}-21060 {h^6} {x_{n+1}^3}-8100 {h^7}{x_{n+1}^2}+22823 {h^9}}{255150{h^8}}
\end{align*}
From the above, we obtain the following continuous coefficients-This is obtained through Maple Codes as shown in the \textbf{Appendix}:
\begin{align*}
&\alpha_{0}(x)=y_{n}\\
&h\beta_{0}(x)=\frac{-160 {{w}^{9}}-2520 h {{w}^{8}}-16560 {{h}^{2}} {{w}^{7}}-58800 {{h}^{3}} {{w}^{6}}-121842 {{h}^{4}} {{w}^{5}}-147735 {{h}^{5}} {{w}^{4}}-98010 {{h}^{6}} {{w}^{3}}-28350 {{h}^{7}} {{w}^{2}}+473977 {{h}^{9}}}{2041200{h^8}}\\
&h\beta_{1}(x)=\frac{320 {{w}^{9}}+4680 h {{w}^{8}}+27360 {{h}^{2}} {{w}^{7}}+78960 {{h}^{3}} {{w}^{6}}+102564 {{h}^{4}} {{w}^{5}}-9135 {{h}^{5}} {{w}^{4}}-197940 {{h}^{6}} {{w}^{3}}-237330 {{h}^{7}} {{w}^{2}}-113400 {{h}^{8}} w+343921 {{h}^{9}}}{113400{h^8}}\\
&h\beta_{\frac{3}{2}}(x)=\frac{-1120 {{w}^{9}}-15750 h {{w}^{8}}-86760 {{h}^{2}} {{w}^{7}}-225750 {{h}^{3}} {{w}^{6}}-223524 {{h}^{4}} {{w}^{5}}+171675 {{h}^{5}} {{w}^{4}}+578340 {{h}^{6}} {{w}^{3}}+396900 {{h}^{7}} {{w}^{2}}-594011 {{h}^{9}}}{85050{h^8}}\\
&h\beta_{2}(x)=\frac{560 {{w}^{9}}+7560 h {{w}^{8}}+39240 {{h}^{2}} {{w}^{7}}+92400 {{h}^{3}} {{w}^{6}}+68607 {{h}^{4}} {{w}^{5}}-101745 {{h}^{5}} {{w}^{4}}-210735 {{h}^{6}} {{w}^{3}}-99225 {{h}^{7}} {{w}^{2}}+203338 {{h}^{9}}}{18900{h^8}}\\
&h\beta_{\frac{5}{2}}(x)=\frac{-1120 {w^9}-14490 h {w^8}-70920 {h^2} {w^7}-152250 {h^3} {w^6}-84924 {h^4} {w^5}+191205 {h^5} {w^4}+310380 {h^6} {w^3}+132300 {h^7} {w^2}-310181 {h^9}}{28350{h^8}}\\
&h\beta_{3}(x)=\frac{2240 {{w}^{9}}+27720 h {{w}^{8}}+128160 {{h}^{2}} {{w}^{7}}+253680 {{h}^{3}} {{w}^{6}}+109116 {{h}^{4}} {{w}^{5}}-336735 {{h}^{5}} {{w}^{4}}-487620 {{h}^{6}} {{w}^{3}}-198450 {{h}^{7}} {{w}^{2}}+501889 {{h}^{9}}}{68040{h^8}}\\
&h\beta_{\frac{7}{2}}(x)=\frac{-160 {{w}^{9}}-1890 h {{w}^{8}}-8280 {{h}^{2}} {{w}^{7}}-15330 {{h}^{3}} {{w}^{6}}-5292 {{h}^{4}} {{w}^{5}}+21105 {{h}^{5}} {{w}^{4}}+28620 {{h}^{6}} {{w}^{3}}+11340 {{h}^{7}} {{w}^{2}}-30113 {{h}^{9}}}{9450{h^8}}\\
&h\beta_{4}(x)=\frac{1120 {{w}^{9}}+12600 h {{w}^{8}}+52560 {{h}^{2}} {{w}^{7}}+92400 {{h}^{3}} {{w}^{6}}+26334 {{h}^{4}} {{w}^{5}}-130725 {{h}^{5}} {{w}^{4}}-169890 {{h}^{6}} {{w}^{3}}-66150 {{h}^{7}} {{w}^{2}}+181751 {{h}^{9}}}{226800{h^8}}\\
&h\beta_{\frac{9}{2}}(x)=\frac{-160 {{w}^{9}}-1710 h {{w}^{8}}-6840 {{h}^{2}} {{w}^{7}}-11550 {{h}^{3}} {{w}^{6}}-2772 {{h}^{4}} {{w}^{5}}+16695 {{h}^{5}} {{w}^{4}}+21060 {{h}^{6}} {{w}^{3}}+8100 {{h}^{7}} {{w}^{2}}-22823 {{h}^{9}}}{255150{h^8}}
\end{align*}
Evaluating the above at \[w=0, w=-\frac{h}{2}, w=-h, w=-\frac{3h}{2}, w=-2, w=-\frac{5h}{2}, w=-3, w=-\frac{7h}{2} \] to obtain the following discrete schemes:
\begin{align*}
&y_{n+1}=\frac{y_{n}}{2041200}+\frac{h}{2041200}\bigg[473977{f_n} +6190578f_{n+1}-14256264 f_{n+\frac{3}{2}}+21960504f_{n+2}-22333032f_{n+\frac{5}{2}}+15056670f_{ n+3}\\
&-6504408 f_{ n+\frac{7}{2}} +1635759 f_{ n+4}-182584 f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{3}{2}}=\frac{y_{n}}{89600}+\frac{h}{89600}\bigg[20759 {f_n} +287046 f_{ n+1} -581818 f_{ n+\frac{3}{2}}+936468 f_{ n+2}-958194 f_{ n+\frac{5}{2}} +647690 f_{ n+3} -280206f_{n+\frac{7}{2}} +70533 f_{ n+4}-7878 f_{ n+\frac{9}{2}}\bigg]\\
&y_{n+2}=\frac{y_{n}}{255150}+\frac{h}{255150}\bigg[59143{f_n}+814932f_{n+1}-1601616f_{\frac{n+3}{2}}+2762856f_{n+2}-2761488f_{\frac{n+5}{2}}+1860780f_{n+3}-803952f_{\frac{n+7}{2}}+202221f_{n+4}-22576f_{\frac{n+9}{2}}\bigg]\\
&y_{n+\frac{5}{2}}=\frac{y_{n}}{2612736}+\frac{h}{2612736}\bigg[605495{f_n}+8353350 f_{ n+1}-16467450 f_{ n+\frac{3}{2}}+28962900 f_{ n+2}-27460530-f_{ n+\frac{5}{2}}+18890250 f_{ n+3}8182350 f_{ n+\frac{7}{2}}\\
&+2060325f_{ n+4}-230150f_{ n+\frac{9}{2}}\bigg]\\
&y_{n+3}=\frac{y_{n}}{2800}+\frac{h}{2800}\bigg[649{f_n}+8946f_{n+1}-17608f_{n+\frac{3}{2}}+30888f_{n+2}-28584f_{n+\frac{5}{2}}+20990f_{n+3}-8856f_{n+\frac{7}{2}}+2223f_{n+4}-248f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{7}{2}}=\frac{y_{n}}{9331200}+\frac{h}{9331200}\bigg[2162377{f_n}+29837178f_{n+1}-58823814f_{n+\frac{3}{2}}+103389804f_{n+2}-96271182f_{n+\frac{5}{2}}+73295670f_{n+3}-27390258f_{n+\frac{7}{2}}\\&+7276059f_{n+4}-816634f_{n+\frac{9}{2}}\bigg]\\
&y_{n+4}=\frac{y_{n}}{127575}+\frac{h}{127575}\bigg[29578{f_n}+407232f_{n+1}-800256f_{n+\frac{3}{2}}+1402056f_{n+2}-1294848f_{n+\frac{5}{2}}+972480f_{n+3}-317952f_{n+\frac{7}{2}}+123786f_{n+4}-11776f_{n+\frac{9}{2}}\bigg]\\
&y_{n+\frac{9}{2}}=\frac{y_{n}}{89600}+\frac{h}{89600}\bigg[20727{f_n}+288198f_{n+1}-574074f_{n+\frac{3}{2}}+1017684f_{n+2}-965682f_{n+\frac{5}{2}}+748170f_{n+3}-278478f_{n+\frac{7}{2}}+141669f_{n+4}4986f_{n+\frac{9}{2}}\bigg]
\end{align*}
\end{document}
```
| https://tex.stackexchange.com/users/295796 | Changing a Wide Matrix from Landscape to Portrait Orientation | true | In the following code, the main change I've implemented is to user fewer `\frac` expressions and use more inline-fraction terms, as well as 1.5, 2.5, 3.5, and 4.5 instead of `\frac{3}{2}`, `\frac{5}{2}`, `\frac{7}{2}`, and `\frac{9}{2}`. I've also eliminated scores of useless pairs of curly braces.
There's simply no *normal* way to force the `B` matrix into the width of the textblock; I've therefore had to resort to the sledgehammer method, aka `\resizebox`. The result is awful, but it's the only adjustment method available since you don't want to render the matrix in landscape mode.
The following screenshot shows the first of roughly 2.5 pages that are produced by the code given below.
```
\documentclass[a4paper,12pt]{book}
\usepackage{graphicx}
\usepackage[inner=1.3cm, outer=1.3cm, vmargin=2cm,
bindingoffset=1cm]{geometry}
%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc} % <-- new
\usepackage{amssymb,mathtools}
\allowdisplaybreaks % <-- new
\begin{document}
Consider the Linear Multi-step Method:
\begin{equation}
\begin{split}
y(x) = \alpha_{0}(x)y_n + h\big[
&\beta_{0}(x)f_n+\beta_{1}(x)f_{n+1}+\beta_{1.5}(x)f_{n+1.5}+\beta_{2}(x)f_{n+2}\\
& +\beta_{2.5}(x)f_{n+2.5}+\beta_{3}(x)f_{n+3}+\beta_{3.5}(x)f_{n+3.5} \\
&+\beta_{4}(x)f_{n+4}+\beta_{4.5}(x)f_{n+4.5}\big]
\end{split}
\end{equation}
\begin{equation}
\renewcommand\arraystretch{1.25}
A=\begin{bmatrix*}[l]
1 & x_n & x_n^2 & x_n^3 & x_n^4 & x_n^5 & x_n^6 & x_n^7 & x_n^8 & x_n^9 \\
0 & 1 & 2 x_n & 3 x_n^2 & 4 x_n^3 & 5 x_n^4 & 6 x_n^5 & 7 x_n^6 & 8 x_n^7 & 9 x_n^8 \\
0 & 1 & 2 x_{n+1} & 3 x_{n+1}^2 & 4 x_{n+1}^3 & 5 x_{n+1}^4 & 6x_{n+1}^5 & 7 x_{n+1}^6 & 8 x_{n+1}^7 & 9 x_{n+1}^8\\
0 & 1 & 2 x_{n+1.5} & 3 x_{n+1.5}^2 & 4 x_{n+1.5}^3 & 5 x_{n+1.5}^4 & 6 x_{n+1.5}^5 & 7 x_{n+1.5}^6 & 8 x_{n+1.5}^7 & 9 x_{n+1.5}^8 \\
0 & 1 & 2 x_{n+2} & 3 x_{n+2}^2 & 4 x_{n+2}^3 & 5 x_{n+2}^4 & 6 x_{ n+2}^5 & 7 x_{n+2}^6 & 8 x_{n+2}^7 & 9 x_{n+2}^8\\
0 & 1 & 2 x_{n+2.5} & 3 x_{n+2.5}^2 & 4 x_{n+2.5}^3 & 5 x_{n+2.5}^4 & 6 x_{n+2.5}^5 & 7 x_{n+2.5}^6 & 8 x_{n+2.5}^7 & 9 x_{n+2.5}^8 \\
0 & 1 & 2 x_{n+3} & 3 x_{n+3}^2 & 4 x_{n+3}^3 & 5 x_{n+3}^4 & 6 x_{n+3}^5 & 7 x_{n+3}^6 & 8 x_{n+3}^7 & 9 x_{n+3}^8\\
0 & 1 & 2 x_{n+3.5} & 3 x_{n+3.5}^2 & 4 x_{n+3.5}^3 & 5 x_{n+3.5}^4 & 6 x_{n+3.5}^5 & 7 x_{n+3.5}^6 & 8 x_{n+3.5}^7 & 9 x_{n+3.5}^8\\
0 & 1 & 2 x_{n+4} & 3 x_{n+4}^2 & 4 x_{n+4}^3 & 5 x_{n+4}^4 & 6 x_{n+4}^5 & 7 x_{n+4}^6 & 8 x_{n+4}^7 & 9 x_{n+4}^8 \\
0 & 1 & 2 x_{n+4.5} & 3 x_{n+4.5}^2 & 4 x_{n+4.5}^3 & 5 x_{n+4.5}^4 & 6 x_{n+4.5}^5 & 7 x_{n+4.5}^6 & 8 x_{n+4.5}^7 & 9 x_{n+4.5}^8
\end{bmatrix*}
\end{equation}
Replacing $x_n$, $x_{n+1.5}$, $x_{n+2}$, $x_{n+2.5}$, $x_{n+3}$, $x_{n+3.5}$, $x_{n+4}$, and $x_{n+4.5}$
with $x_{n+1}-h$, $x_{n+1}+0.5h$, $x_{n+1}+h$, $x_{n+1}+1.5h$, $x_{n+1}+2h$, $x_{n+1}+2.5h$, $x_{n+1}+3h$, and $x_{n+1}+3.5h$,
we obtain:
\begin{equation}\label{mat}
\renewcommand\arraystretch{1.25}
\medmuskip=0mu
\setlength\arraycolsep{2.5pt} % default: 5pt
\resizebox{0.94\textwidth}{!}{%
$B=\begin{bmatrix*}[l]
1 & x_{n+1}-h & (x_{n+1}-h)^2 & (x_{n+1}-h)^3 & (x_{n+1}-h)^4 & (x_{n+1}-h)^5 & (x_{n+1}-h)^6 & (x_{n+1}-h)^7 & (x_{n+1}-h)^8 & (x_{n+1}-h)^9 \\
0 & 1 & 2 (x_{n+1}-h) & 3 (x_{n+1}-h)^2 & 4 (x_{n+1}-h)^3 & 5 (x_{n+1}-h)^4 & 6 (x_{n+1}-h)^5 & 7 (x_{n+1}-h)^6 & 8 (x_{n+1}-h)^7 & 9 (x_{n+1}-h)^8 \\
0 & 1 & 2 x_{n+1} & 3 x_{n+1}^2 & 4 x_{n+1}^3 & 5 x_{n+1}^4 & 6x_{n+1}^5 & 7 x_{n+1}^6 & 8 x_{ n+1}^7 & 9 x_{n+1}^8\\
0 & 1 & 2 (x_{n+1}+\frac{1}{2}h) & 3 (x_{n+1}+\frac{1}{2}h)^2 & 4 (x_{n+1}+\frac{1}{2}h)^3 & 5 (x_{n+1}+\frac{1}{2}h)^4 & 6 (x_{n+1}+\frac{1}{2}h)^5 & 7 (x_{n+1}+\frac{1}{2}h)^6 & 8 (x_{n+1}+\frac{1}{2}h)^7 & 9 (x_{n+1}+\frac{1}{2}h)^8\\
0 & 1 & 2 (x_{n+1}+h) & 3 (x_{n+1}+h)^2 & 4 (x_{n+1}+h)^3 & 5 (x_{n+1}+h)^4 & 6 (x_{n+1}+h)^5 & 7 (x_{n+1}+h)^6 & 8 (x_{n+1}+h)^7 & 9 (x_{n+1}+h)^8 \\
0 & 1 & 2 (x_{n+1}+1.5h) & 3 (x_{n+1}+1.5h)^2 & 4 (x_{n+1}+1.5h)^3 & 5(x_{n+1}+1.5h)^4 & 6 (x_{n+1}+1.5h)^5 & 7 (x_{n+1}+1.5h)^6 & 8 (x_{n+1}+1.5h)^7 & 9 (x_{n+1}+1.5h)^8 \\
0 & 1 & 2 (x_{n+1}+2h) & 3 (x_{n+1}+2h)^2 & 4 (x_{n+1}+2h)^3 & 5 (x_{n+1}+2h)^4 & 6 (x_{n+1}+2h)^5 & 7 (x_{n+1}+2h)^6 & 8 (x_{n+1}+2h)^7 & 9 (x_{n+1}+2h)^8 \\
0 & 1 & 2 (x_{n+1}+2.5h) & 3 (x_{n+1}+2.5h)^2 & 4 (x_{n+1}+2.5h)^3 & 5 (x_{n+1}+2.5h)^4 & 6 (x_{n+1}+2.5h)^5 & 7 (x_{n+1}+2.5h)^6 & 8 (x_{n+1}+2.5h)^7 & 9 (x_{n+1}+2.5h)^8 \\
0 & 1 & 2 (x_{n+1}+3h) & 3 (x_{n+1}+3h)^2 & 4 (x_{n+1}+3h)^3 & 5 (x_{n+1}+3h)^4 & 6(x_{n+1}+3h)^5 & 7 (x_{n+1}+3h)^6 & 8 (x_{n+1}+3h)^7 & 9 (x_{n+1}+3h)^8\\
0 & 1 & 2 (x_{n+1}+3.5h) & 3 (x_{n+1}+3.5h)^2 & 4 (x_{n+1}+3.5h)^3 & 5 (x_{n+1}+3.5h)^4 & 6 (x_{n+1}+3.5h)^5 & 7 (x_{n+1}+3.5h)^6 & 8 (x_{n+1}+3.5h)^7 & 9 (x_{n+1}+3.5h)^8
\end{bmatrix*}$}
\end{equation}
The new matrix is renamed $B$ for ease of reference.
The determinant of $B$ is:
\[
\det (B) =\tfrac{1}{64} 15380234690625 h^{36}
\]
The inverse of \eqref{mat} is the $C$ matrix calculated using \textbf{Maple} codes as shown in the \textbf{Appendix}.
Our only interest in the $C$ matrix is its first row. The elements are:
\begin{align*}
c_{11}&=1\\[\jot]
c_{12}&=-(160 x_{n+1}^9+2520 h x_{n+1}^8+16560 h^2 x_{n+1}^7+58800 h^3 x_{n+1}^6+121842 h^4 x_{n+1}^5+147735 h^5 x_{n+1}^4\\
&\quad+98010 h^6 {x_{n+1sing}^3}+28350 h^7 x_{n+1}^2-473977 h^9)/(2041200 h^8)\\[\jot]
c_{13}&=(320 x_{n+1}^9+4680 h x_{n+1}^8+27360 h^2 x_{n+1}^7+78960 h^3 x_{n+1}^6+102564 h^4 x_{n+1}^5-9135 h^5 x_{n+1}^4\\
&\quad-197940 h^6 x_{n+1}^3-237330 h^7 x_{n+1}^2-113400 h^8 x_{n+1}+343921 h^9)/(113400 h^8)\\[\jot]
c_{14}&=-(1120 x_{n+1}^9+15750 h x_{n+1}^8+86760 h^2 x_{n+1}^7+225750 h^3 x_{n+1}^6+223524 h^4 x_{n+1}^5\\
&\quad-171675 h^5 x_{n+1}^4-578340 h^6 x_{n+1}^3-396900 h^7 x_{n+1}^2+594011 h^9)/(85050 h^8)\\[\jot]
c_{15}&=(560 x_{n+1}^9+7560 h x_{n+1}^8+39240 h^2 x_{n+1}^7+92400 h^3 x_{n+1}^6+68607 h^4 x_{n+1}^5\\
&\quad-101745 h^5 {x_{ n+1}^4}-210735 h^6 x_{n+1}^3-99225 h^7 x_{n+1}^2+203338 h^9)/(18900 h^8) \\[\jot]
c_{16}&=-(1120 x_{n+1}^9+14490 h x_{n+1}^8+70920 h^2 x_{n+1}^7+152250 h^3 x_{n+1}^6+84924 h^4 x_{n+1}^5\\
&\quad-191205 h^5 x_{n+1}^4-310380 h^6 x_{n+1}^3-132300 h^7 x_{n+1}^2+310181 h^9)/(28350 h^8)\\[\jot]
c_{17}&=(2240 x_{n+1}^9+27720 h x_{n+1}^8+128160 h^2 x_{n+1}^7+253680 h^3 x_{n+1}^6+109116 h^4 x_{n+1}^5\\
&\quad-336735 h^5 x_{n+1}^4-487620 h^6 x_{n+1}^3-198450 h^7 x_{n+1}^2+501889 h^9)/(68040 h^8)\\[\jot]
c_{18}&=-(160 x_{n+1}^9+1890 h x_{n+1}^8+8280 h^2 x_{n+1}^7+15330 h^3 x_{n+1}^6+5292 h^4 x_{n+1}^5\\
&\quad-21105 h^5 x_{n+1}^4-28620 h^6 x_{n+1}^3-11340 h^7 x_{n+1}^2+30113 h^9)/(9450 h^8)\\[\jot]
c_{19}&=(1120 x_{n+1}^9+12600 h x_{n+1}^8+52560 h^2 x_{n+1}^7+92400 h^3 x_{n+1}^6+26334 h^4 x_{n+1}^5\\
&\quad-130725 h^5 x_{n+1}^4-169890 h^6 x_{n+1}^3-66150 h^7 x_{n+1}^2+181751 h^9)/(226800 h^8)\\[\jot]
c_{(10)}&=-(160 x_{n+1}^9+1710 h x_{n+1}^8+6840 h^2 x_{n+1}^7+11550 h^3 x_{n+1}^6+2772 h^4 x_{n+1}^5\\
&\quad-16695 h^5 x_{n+1}^4-21060 h^6 x_{n+1}^3-8100 h^7x_{n+1}^2+22823 h^9)/(255150h^8)
\end{align*}
From the above, we obtain the following continuous coefficients. This is obtained through
Maple Codes as shown in the \textbf{Appendix}:
\begin{align*}
\alpha_0(x) &=y_n\\
h\beta_0(x) &=\bigl(-160 w^9-2520 h w^8-16560 h^2 w^7-58800 h^3 w^6-121842 h^4 w^5-147735 h^5 w^4\\
&\quad-98010 h^6 w^3-28350 h^7 w^2+473977 h^9\bigr)\big/\bigl(2041200h^8\bigr)\\[\jot]
h\beta_1(x) &=\bigl(320 w^9+4680 h w^8+27360 h^2 w^7+78960 h^3 w^6+102564 h^4 w^5-9135 h^5 w^4\\
&\quad-197940 h^6 w^3-237330 h^7 w^2-113400 h^8 w+343921 h^9\bigr)\big/\bigl(113400h^8\bigr)\\[\jot]
h\beta_{1.5}(x)&=\bigl(-1120 w^9-15750 h w^8-86760 h^2 w^7-225750 h^3 w^6-223524 h^4 w^5+171675 h^5 w^4\\
&\quad+578340 h^6 w^3+396900 h^7 w^2-594011 h^9\bigr)\big/\bigl(85050h^8\bigr)\\[\jot]
h\beta_2(x) &=\bigl(560 w^9+7560 h w^8+39240 h^2 w^7+92400 h^3 w^6+68607 h^4 w^5-101745 h^5 w^4\\
&\quad-210735 h^6 w^3-99225 h^7 w^2+203338 h^9\bigr)\big/\bigl(18900h^8\bigr)\\[\jot]
h\beta_{2.5}(x)&=\bigl(-1120 w^9-14490 h {w^8}-70920 h^2 w^7-152250 h^3 w^6-84924 h^4 w^5+191205 h^5 w^4\\
&\quad+310380 h^6 w^3+132300 h^7 w^2-310181 h^9\bigr)\big/\bigl(28350h^8\bigr)\\[\jot]
h\beta_3(x) &=\bigl(2240 w^9+27720 h w^8+128160 h^2 w^7+253680 h^3 w^6+109116 h^4 w^5-336735 h^5 w^4\\
&\quad-487620 h^6 w^3-198450 h^7 w^2+501889 h^9\bigr)\big/\bigl(68040h^8\bigr)\\[\jot]
h\beta_{3.5}(x)&=\bigl(-160 w^9-1890 h w^8-8280 h^2 w^7-15330 h^3 w^6-5292 h^4 w^5+21105 h^5 w^4\\
&\quad+28620 h^6 w^3+11340 h^7 w^2-30113 h^9\bigr)\big/\bigl(9450h^8\bigr)\\[\jot]
h\beta_4(x) &=\bigl(1120 w^9+12600 h w^8+52560 h^2 w^7+92400 h^3 w^6+26334 h^4 w^5-130725 h^5 w^4\\
&\quad-169890 h^6 w^3-66150 h^7 w^2+181751 h^9\bigr)\big/\bigl(226800h^8\bigr)\\[\jot]
h\beta_{4.5}(x)&=\bigl(-160 w^9-1710 h w^8-6840 h^2 w^7-11550 h^3 w^6-2772 h^4 w^5+16695 h^5 w^4\\
&\quad+21060 h^6 w^3+8100 h^7 w^2-22823 h^9\bigr)\big/\bigl(255150h^8\bigr)
\end{align*}
Evaluating the above at $w=0$, $w=-0.5h$, $w=-h$, $w=-1.5h$, $w=-2h$, $w=-2.5h$,
$w=-3$, and $w=-3.5h$ to obtain the following discrete schemes:
\begin{align*}
y_{n+1} &=\frac{y_n}{2041200}+\frac{h}{2041200}\Bigl[473977{f_n} +6190578f_{n+1}-14256264 f_{n+1.5}+21960504f_{n+2}\\
&\quad-22333032f_{n+2.5}+15056670f_{n+3}-6504408 f_{n+3.5} +1635759 f_{n+4}-182584 f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+1.5}&=\frac{y_n}{89600}+\frac{h}{89600}\Bigl[20759 {f_n} +287046 f_{n+1} -581818 f_{n+1.5}+936468 f_{n+2}\\
&\quad-958194 f_{n+2.5} +647690 f_{n+3} -280206f_{n+3.5} +70533 f_{n+4}-7878 f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+2} &=\frac{y_n}{255150}+\frac{h}{255150}\Bigl[59143{f_n}+814932f_{n+1}-1601616f_{n+1.5}+2762856f_{n+2}\\
&\quad-2761488f_{n+2.5}+1860780f_{n+3}-803952f_{n+3.5}+202221f_{n+4}-22576f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+2.5}&=\frac{y_n}{2612736}+\frac{h}{2612736}\Bigl[605495{f_n}+8353350 f_{n+1}-16467450 f_{n+1.5}+28962900 f_{n+2}\\*
&\quad-27460530 f_{n+2.5}+18890250 f_{n+3}8182350 f_{n+3.5}+2060325f_{n+4}-230150f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+3} &=\frac{y_n}{2800}+\frac{h}{2800}\Bigl[649{f_n}+8946f_{n+1}-17608f_{n+1.5}+30888f_{n+2}\\
&\quad-28584f_{n+2.5}+20990f_{n+3}-8856f_{n+3.5}+2223f_{n+4}-248f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+3.5}&=\frac{y_n}{9331200}+\frac{h}{9331200}\Bigl[2162377{f_n}+29837178f_{n+1}-58823814f_{n+1.5}+103389804f_{n+2}\\
&\quad-96271182f_{n+2.5}+73295670f_{n+3}-27390258f_{n+3.5} +7276059f_{n+4}-816634f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+4} &=\frac{y_n}{127575}+\frac{h}{127575}\Bigl[29578{f_n}+407232f_{n+1}-800256f_{n+1.5}+1402056f_{n+2}\\
&\quad -1294848f_{n+2.5}+972480f_{n+3}-317952f_{n+3.5} +123786f_{n+4}-11776f_{n+4.5}\smash[t]{\Bigr]}\\
y_{n+4.5}&=\frac{y_n}{89600}+\frac{h}{89600}\Bigl[20727{f_n}+288198f_{n+1}-574074f_{n+1.5}+1017684f_{n+2}\\
&\quad-965682f_{n+2.5}+748170f_{n+3}-278478f_{n+3.5}+141669f_{n+4}4986f_{n+4.5}\smash[t]{\Bigr]}
\end{align*}
\end{document}
```
| 6 | https://tex.stackexchange.com/users/5001 | 684024 | 317,335 |
https://tex.stackexchange.com/questions/684015 | 5 | The following code compiles and generates the pdf properly:
```
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\zero}{\overline{0}}
\begin{document}
Writing $V_\alpha$ does not give problems.
\end{document}
```
However, the following code does give problems:
```
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\zero}{\overline{0}}
\begin{document}
Writing $V_\zero$ gives problems.
\end{document}
```
Why is that? Is there any way to make `\zero` work like `\alpha`?
| https://tex.stackexchange.com/users/12484 | Why not using curly braces with operators made with \DeclareMathOperator give problems? | false | While it is “almost correct” to say that TeX regards what comes after `^` or `_` like the argument to a macro, it's actually skipping a fundamental fact about them.
And this is where things go wrong with your `V_\zero`.
The fundamental difference with argument to macros is that when you have a macro taking an argument (an undelimited one, to be precise), say `\foo`, then TeX will look for the argument *without doing any expansion*: if an open brace follows, then the entire content up to the matching closing brace will be taken as the argument; otherwise the next token will be taken as the argument.
To the contrary, upon seeing `^` or `_`, TeX *will* expand tokens in order to see whether an open brace (possibly implicit) follows; in the process, `\relax` and space tokens are ignored. Such expansion process terminates as soon as an unexpandable token (other than `\relax` or a space) is found; if it is an open brace, then the argument will be grabbed up to the matching closing brace (that can be implicit as well).
Thus you can do
```
V_\bgroup 10\egroup
```
and this will take `10` as the subscript. Note that if `\foo` is a macro taking an argument, then `\foo\bgroup 10\egroup` will take `\bgroup` as the argument (probably with bad side effects).
You can test it with simple plain TeX code.
```
\def\foo#1{(#1)}
\def\x{\bgroup}
\def\void{}
\foo{10}
\foo\bgroup 10\egroup
$V_{10} = V_\bgroup 10\egroup=V_\x 10}$
$V_\void x$
\bye
```
With `\foo\bgroup 10\egroup`, the token `\bgroup` is taken as the argument so the input stream will become
```
(\bgroup)10\egroup
```
(second line). The third line shows that all those (bizarre) inputs lead to the same result.
The fourth line shows that `\void` is expanded; the expansion is empty, so TeX keeps looking for an unexpandable token (with macro expansion); it finds `x`, so it takes it as the subscript.
Why does `V_\alpha` work? Because `\alpha` is an unexpandable token. It is ***not*** defined as
```
\def\alpha{\mathchar"010B }
```
but with
```
\mathchardef\alpha="010B
```
which is *very* different. So the look up for an unexpandable token ends when `\alpha` is scanned.
If you ask LaTeX to show how your `\zero` is actually defined with `\show\zero`, you will see
```
> \zero=macro:
->\protect \zero .
```
(there's a space in the name of the final command, but this is not important). The rules explained above have the consequence that `\zero` is expanded to `\protect\zero•` (the bullet denotes the space in the name). Since `\protect` is equivalent to `\relax`, in this context, it is ignored, so TeX expands `\zero•`.
If you do `\ShowCommand\zero` you get
```
> \zero=robust macro:
->\protect \zero .
> \zero =\long macro:
->\qopname \newmcodes@ o{\overline {0}}.
```
so the first token remaining in the input stream is `\qopname`. Now `\ShowCommand\qopname` produces
```
> \qopname=robust macro:
->\protect \qopname .
> \qopname =\long macro:
#1#2#3->\mathop {#1\kern \z@ \operator@font #3}\csname n#2limits@\endcsname .
```
The situation is similar: `\protect` is ignored and `\qopname•` is expanded; now the error appears, because `\mathop` is unexpandable, so it is taken to be the whole subscript, but it is illegal to do
```
V_\mathop
```
for easy to understand reasons.
Conclusion: it's OK to write something like `V_\alpha` or `V_1`, but avoid omitting braces when you're not sure. Better yet, ***always*** brace subscripts and superscripts.
| 6 | https://tex.stackexchange.com/users/4427 | 684026 | 317,336 |
https://tex.stackexchange.com/questions/684012 | 0 | Both `\hbox` and `\vbox` (and similar box commands) require explicitly to enclose their content inside of curly braces, so they behave differently from macros. What's the reason of this specification?
If I redefine for instance `\hbox` as a macro, would there be any issue?
```
\let\orihbox\hbox
\def\hbox#1{\orihbox{#1}}
```
| https://tex.stackexchange.com/users/43121 | Why are braces mandatory in boxes? | false | You want to tell TeX what should be boxed, don't you?
Actually, explicit braces aren't mandatory: they can be replaced with `\bgroup` and `\egroup` (which isn't possible with argument to macros).
As Skillmon points out in a comment, you can define
```
\def\starthbox{\hbox\bgroup}
\def\finishhbox{\egroup}
```
and
```
\starthbox abc\finishhbox
```
would box `abc`. Maybe this is not so relevant for `\hbox`, but it is for the similarly behaved `\vbox`, `\vtop` and `\halign`. You can do
```
\def\starthboxregister#1{\setbox#1=\hbox\bgroup}
\def\finishhboxregister{\egroup}
```
and doing
```
\starthboxregister{0}abc\finishhboxregister
```
would be equivalent to
```
\setbox0=\hbox{abc}
```
Again, possibly not so useful with `\hbox`, but, for example, `\begin{tabular}` of LaTeX eventually does
```
\halign\bgroup
```
and `\end{tabular}` issues the matching `\egroup`.
By the way, if you do
```
\hbox\relax{abc}`
```
then the result would be to box `abc`, because `\hbox` ignores what the TeXbook calls a ⟨filler⟩.
And `\hbox` (like the similar primitives listed above) performs expansion in order to find `to`, `spread` or an opening brace.
With your proposed redefinition of `\hbox` you'd become able to say
```
\hbox a
```
at the expense of breaking a lot of things; for instance, `\hbox to <dimen>{...}` would suddenly cease to work. Count the number of times `\hb@xt@` appears in `latex.ltx` and *where*.
| 4 | https://tex.stackexchange.com/users/4427 | 684027 | 317,337 |
https://tex.stackexchange.com/questions/89574 | 51 | I am afraid that listing doesn't support javascript.
```
\begin{lstlisting}[language=javascript]
...
\end{lstlisting}
```
What am I doing wrong?
| https://tex.stackexchange.com/users/24026 | language option supported in listings | false | A complete keyword list which also covers typescript would be:
```
keywords={abstract, any, as, boolean, break, case, catch, class, console,
const, continue, debugger, declare, default, delete, do, else, enum, export,
extends, false, finally, for, from, function, get, if, implements, import, in,
infer, instanceof, interface, keyof, let, module, namespace, never, new, null,
number, object, package, private, protected, public, readonly, require, return,
set, static, string, super, switch, symbol, this, throw, true, try, type, typeof,
undefined, unique, unknown, var, void, while, with, yield}
```
| 2 | https://tex.stackexchange.com/users/295803 | 684030 | 317,338 |
https://tex.stackexchange.com/questions/211200 | 13 | Can you give me a link to the documentation of `\usefonttheme`?
Thank you very much.
| https://tex.stackexchange.com/users/65864 | Where can I find all the themes in \usefonttheme? | false | You can find the latest Beamer font themes in their source files [here](https://github.com/josephwright/beamer/tree/main/base/themes/font). Just remove the `beamerfonttheme` prefix and you have the name.
| 1 | https://tex.stackexchange.com/users/89827 | 684035 | 317,341 |
https://tex.stackexchange.com/questions/684029 | 0 | Within a list environment, enumerate say, how can I place some text, between or before items.
MWE:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
% Text here to be at margin
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
I am aware of the start/resume functionality offered by `enumitem`, however, I need to be able to do this *before* any items are called (i.e. before First item). I require this as part of a separate command that I am preparing which needs flexibility to be called anywhere within the list.
Ideally, say, if there was a command like `\atMargin{Here is the text}` which just printed the text at the margin, that would solve the problem.
My current solution involves introducing a phantom item and then attempting to negate the space from this, but of course is suboptimal:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item[] \vspace{-1cm}
\end{enumerate}
Text at margin
\begin{enumerate}[resume]
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/136988 | Place text at margin, breaking a list (flexibility to work before items required) | true | This shows how to add full width text after an `\item`. (Idea stolen from exam class.)
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\noindent Text at margin
\begin{enumerate}
\item First item
\hspace*{-\csname @totalleftmargin\endcsname}%
\parbox{\textwidth}{Text at Margin}
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
---
I don't see the point, but you can always add a phantom `\item[]`.
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item[]\hspace*{-\csname @totalleftmargin\endcsname}%
\parbox{\textwidth}{Text at Margin}
\item First item
\item[]\hspace*{-\csname @totalleftmargin\endcsname}%
\parbox{\textwidth}{Text at Margin}
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/34505 | 684036 | 317,342 |
https://tex.stackexchange.com/questions/684037 | 3 | I am currently working on a document in Overleaf, and I am having trouble formatting my equations and mathematical expressions. Specifically, I want to enumerate the steps of the solution with text describing the steps along the way, but I am having trouble aligning equations and getting them to display properly.
I keep getting several error messages such as "Missing $ inserted," "Command \item invalid in math mode," "Something's wrong--perhaps a missing \item," and "Command \end{enumerate} invalid in math mode."
I believe these errors are related to my use of mathematical symbols and expressions in the document. I understand that I need to enclose all mathematical expressions and symbols with special markers to create 'math mode'. I have tried using `$...$` for inline math mode, and `\[...\]` or one of the mathematical environments (e.g. equation) for display math mode, but I still seem to be making some mistakes.
Can someone please help me with aligning my equations and getting them to display properly? Any advice or suggestions would be greatly appreciated. Thank you in advance!
It's partly in Swedish, I had to translate the text to English (for context):
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{geometry}
\title{Krysstal 2}
\author{D}
\date{April 2023}
\begin{document}
\section*{Uppgift}
3. Calculate the determinant of the matrix below. Note that the number of multiplications and additions needed to calculate the determinant depends on how it is expanded!
$$
\left[\begin{array}{lllll}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right] .
$$
\subsection*{Lösning}
To calculate the determinant of a $5 \times 5$ matrix, we use cofactor expansion. First, we choose the row or column with the most zeros, which in this case is the last row, to reduce the problem by one step. Then, we write the determinant as a sum of products of terms. Each term corresponds to an element in the selected row or column and its minor, obtained by deleting the row and column that correspond to the element, multiplied by $(-1)^{i+j}$ where $i$ and $j$ are the row and column indices of the element. Then we expand along the selected row using cofactor expansion, which reduces the problem by one more step. Finally, we use Sarrus's rule to calculate the determinant of a $3 \times 3$ matrix.
\begin{enumerate}
\item We are to calculate the determinant of a $5 \times 5$ matrix. To solve the problem, we will use cofactor expansion, choosing the row or column with the most zeros. In this case, it is the last row that has the most zeros (4). We have a $5 \times 5$ matrix that looks like this:
$$
\left[\begin{array}{lllll}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right] .
$$
\item Then we write out the determinant by taking a sum of products. We use the last row as our expansion row, since it has the most zeros. We get:
$$
\left|\begin{array}{ccccc}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right| = (0)(-1)^{5+1}\left| \begin{array}{cccc}
0 & 0 & 0 & 4 \\
7 & 0 & 5 & 0 \\
2 & 1 & 3 & 0 \\
6 & 0 & 8 & 0
\end{array}\right|
+ (0)(-1)^{5+2}\left| \begin{array}{cccc}
1 & 0 & 0 & 4 \\
0 & 0 & 5 & 0 \\
0 & 1 & 3 & 0 \\
0 & 0 & 8 & 0 \\
\end{array}\right| \\
+ (0)(-1)^{5+3}\left| \begin{array}{cccc}
1 & 0 & 0 & 4 \\
0 & 7 & 5 & 0 \\
0 & 2 & 3 & 0 \\
0 & 6 & 8 & 0
\end{array}\right| \\
$$
$$
+ (0)(-1)^{5+4} \left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right|
+ (1)(-1)^{5+5} \left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right| \\
= \left|\begin{array}{llll}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right| $$\\
\text{Utvecklar längs rad 1:}\\$$
$$
$$
\left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right|=(1)(-1)^{1+1}\left|\begin{array}{ccc}
7 & 0 & 5 \\
2 & 1 & 3 \\
6 & 0 & 8
\end{array}\right| + (0)(-1)^{1+2} \left|\begin{array}{ccc}
0 & 0 & 5 \\
0 & 1 & 3 \\
0 & 0 & 8
\end{array}\right|+(0)(-1)^{1+3}\left|\begin{array}{ccc}
0 & 7 & 5 \\
0 & 2 & 3 \\
0 & 6 & 0
\end{array}\right| \\ $$+ (0)(-1)^{1+4} \left|\begin{array}{lll}
0 & 7 & 0 \\
0 & 2 & 1 \\
0 & 6 & 0
\end{array}\right| = \left|\begin{array}{lll}
0 & 7 & 5 \\
0 & 2 & 3 \\
0 & 6 & 8\end{array}\right|
$$
\\
$$
\item \text{Using Sarrus' rule to calculate the determinant:} \\
$$\begin{vmatrix}7&0&5\\ 2&1&3\\ 6&0&8\end{vmatrix} \begin{matrix}7&0\\ 2&1\\ 6&0\end{matrix} =\left( 7\cdot 1\cdot 8\right) -\left( 6\cdot 1\cdot 5\right) =26$$
\end{enumerate}
\end{document}
```
And with `\[…\]` delimiter (no significant changes that I could notice. Note, it's in Swedish):
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{geometry}
\title{Krysstal 2}
\author{D}
\date{April 2023}
\begin{document}
\section*{Uppgift}
3. Beräkna determinanten till matrisen nedan. Notera att antalet multiplikationer och additioner man behöver göra beror på hur man utvecklar determinanten!
\[
\left[\begin{array}{lllll}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right] .
\]
\subsection*{Lösning}
För att beräkna determinanten för en $5 \times 5$ matris används kofaktorutveckling. Först väljs raden eller kolumnen som har flest nollor, i detta fall den sista raden, för att reducera problemet ett steg. Sedan skrivs determinanten som en summa av produkter av termer. Varje term svarar mot ett element i den valda raden eller kolumnen och dess minor, som fås genom att stryka bort raden och kolumnen som korresponderar med elementet, multiplicerat med $(-1)^{i+j}$ där $i$ och $j$ är rad- respektive kolumnindex för elementet. Därefter utvecklar vi längs raden med hjälp av kofaktorutveckling, vilket reducerar problemet ytterligare ett steg. Slutligen används Sarrus regel för att beräkna determinanten av en $3 \times 3$ matris.
\begin{enumerate}
\item Vi ska beräkna determinanten för en $5 \times 5$ matris. För att lösa problemet kommer vi använda cofaktor expansion, där vi väljer den rad eller kolumn som har flest nollor. I detta fall är det sista raden som har flest nollor (4). Vi har en $5 \times 5$ matris som ser ut som följer:
\[
\left[\begin{array}{lllll}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right] .
\]
\item Sedan skriver vi ut determinanten genom att göra en summa av produkter. Vi använder den sista raden som vår utvecklingsrad, eftersom den har flest nollor. Vi får:
\[
\left|\begin{array}{ccccc}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{array}\right| = (0)(-1)^{5+1}\left| \begin{array}{cccc}
0 & 0 & 0 & 4 \\
7 & 0 & 5 & 0 \\
2 & 1 & 3 & 0 \\
6 & 0 & 8 & 0
\end{array}\right|
+ (0)(-1)^{5+2}\left| \begin{array}{cccc}
1 & 0 & 0 & 4 \\
0 & 0 & 5 & 0 \\
0 & 1 & 3 & 0 \\
0 & 0 & 8 & 0 \\
\end{array}\right| \\
+ (0)(-1)^{5+3}\left| \begin{array}{cccc}
1 & 0 & 0 & 4 \\
0 & 7 & 5 & 0 \\
0 & 2 & 3 & 0 \\
0 & 6 & 8 & 0
\end{array}\right| \\
\]
\[
+ (0)(-1)^{5+4} \left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right|
+ (1)(-1)^{5+5} \left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right| \\
= \left|\begin{array}{llll}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right| \]\\
\text{Utvecklar längs rad 1:}\\
\[
\left|\begin{array}{cccc}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{array}\right|=(1)(-1)^{1+1}\left|\begin{array}{ccc}
7 & 0 & 5 \\
2 & 1 & 3 \\
6 & 0 & 8
\end{array}\right| + (0)(-1)^{1+2} \left|\begin{array}{ccc}
0 & 0 & 5 \\
0 & 1 & 3 \\
0 & 0 & 8
\end{array}\right|+(0)(-1)^{1+3}\left|\begin{array}{ccc}
0 & 7 & 5 \\
0 & 2 & 3 \\
0 & 6 & 0
\end{array}\right| \\ \]+ (0)(-1)^{1+4} \left|\begin{array}{lll}
0 & 7 & 0 \\
0 & 2 & 1 \\
0 & 6 & 0
\end{array}\right| = \left|\begin{array}{lll}
0 & 7 & 5 \\
0 & 2 & 3 \\
0 & 6 & 8\end{array}\right|
\[
\\
\]
\item \text{Använder Sarrus regel för att räkna ut determinanten:} \\
\[\begin{vmatrix}7&0&5\\ 2&1&3\\ 6&0&8\end{vmatrix} \begin{matrix}7&0\\ 2&1\\ 6&0\end{matrix} =\left( 7\cdot 1\cdot 8\right) -\left( 6\cdot 1\cdot 5\right) =26\]
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/294191 | How can I format equations and mathematical expressions in Overleaf, and fix alignment and display issues? | false | Your code contains a number of errors of commission and omission. The most serious issue, in my opinion, is the failure to use any the multi-row math environments of the `amsmath` package -- and the `align*` environment in particular -- to typeset the two three-row expressions for the development of the determinants.
My main suggestion to you would be to perform a line-by-line comparison of your original code with the code shown below. Studying section 3, "Displayed equations", of the user guide of the `amsmath` package and, in particular, studying the syntax of the `align` and `align*` environments in subsection 3.6, "Equation groups with mutual alignment", would probably be an excellent idea. If you have questions about what some of the code shown below does, please let me know.
```
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{amsmath,amssymb}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters as needed
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\usepackage{enumitem}
\begin{document}
\section*{Uppgift}
3. Beräkna determinanten till matrisen nedan. Notera att antalet multiplikationer och additioner man behöver göra beror på hur man utvecklar determinanten!
\[
\begin{bmatrix}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{bmatrix}
\]
\subsection*{Lösning}
För att beräkna determinanten för en $5 \times 5$ matris används kofaktorutveckling. Först väljs raden eller kolumnen som har flest nollor, i detta fall den sista raden, för att reducera problemet ett steg. Sedan skrivs determinanten som en summa av produkter av termer. Varje term svarar mot ett element i den valda raden eller kolumnen och dess minor, som fås genom att stryka bort raden och kolumnen som korresponderar med elementet, multiplicerat med $(-1)^{i+j}$ där $i$ och $j$ är rad- respektive kolumnindex för elementet. Därefter utvecklar vi längs raden med hjälp av kofaktorutveckling, vilket reducerar problemet ytterligare ett steg. Slutligen används Sarrus regel för att beräkna determinanten av en $3 \times 3$ matris.
\begin{enumerate}[left=0pt]
\item Vi ska beräkna determinanten för en $5 \times 5$ matris. För att lösa problemet kommer vi använda cofaktor expansion, där vi väljer den rad eller kolumn som har flest nollor. I detta fall är det sista raden som har flest nollor~(4). Vi har en $5 \times 5$ matris som ser ut som följer:
\[
\begin{bmatrix}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{bmatrix}
\]
\item Sedan skriver vi ut determinanten genom att göra en summa av produkter. Vi använder den sista raden som vår utvecklingsrad, eftersom den har flest nollor. Vi får:
\begin{align*}
\begin{vmatrix}
1 & 0 & 0 & 0 & 4 \\
0 & 7 & 0 & 5 & 0 \\
0 & 2 & 1 & 3 & 0 \\
0 & 6 & 0 & 8 & 0 \\
0 & 0 & 0 & 0 & 1
\end{vmatrix}
&=
(0)(-1)^{5+1}
\begin{vmatrix}
0 & 0 & 0 & 4 \\
7 & 0 & 5 & 0 \\
2 & 1 & 3 & 0 \\
6 & 0 & 8 & 0
\end{vmatrix}
+ (0)(-1)^{5+2}
\begin{vmatrix}
1 & 0 & 0 & 4 \\
0 & 0 & 5 & 0 \\
0 & 1 & 3 & 0 \\
0 & 0 & 8 & 0 \\
\end{vmatrix}
+ (0)(-1)^{5+3}
\begin{vmatrix}
1 & 0 & 0 & 4 \\
0 & 7 & 5 & 0 \\
0 & 2 & 3 & 0 \\
0 & 6 & 8 & 0
\end{vmatrix} \\ % <-- line break
&\quad
+ (0)(-1)^{5+4}
\begin{vmatrix}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{vmatrix}
+ (1)(-1)^{5+5}
\begin{vmatrix}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{vmatrix} \\ % <-- line break
&=
\begin{vmatrix}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{vmatrix}
\end{align*}
Utvecklar längs rad 1:
\begin{align*}
\begin{vmatrix}
1 & 0 & 0 & 0 \\
0 & 7 & 0 & 5 \\
0 & 2 & 1 & 3 \\
0 & 6 & 0 & 8
\end{vmatrix}
&=
(1)(-1)^{1+1}
\begin{vmatrix}
7 & 0 & 5 \\
2 & 1 & 3 \\
6 & 0 & 8
\end{vmatrix}
+ (0)(-1)^{1+2}
\begin{vmatrix}
0 & 0 & 5 \\
0 & 1 & 3 \\
0 & 0 & 8
\end{vmatrix} \\ % <-- line break
&\quad
+(0)(-1)^{1+3}
\begin{vmatrix}
0 & 7 & 5 \\
0 & 2 & 3 \\
0 & 6 & 0
\end{vmatrix}
+(0)(-1)^{1+4}
\begin{vmatrix}
0 & 7 & 0 \\
0 & 2 & 1 \\
0 & 6 & 0
\end{vmatrix} \\ % <-- line break
&=
\begin{vmatrix}
7 & 0 & 5 \\
2 & 1 & 3 \\
6 & 0 & 8
\end{vmatrix}
\end{align*}
\item Använder Sarrus regel för att räkna ut determinanten:
\[
\begin{vmatrix}
7&0&5 \\ 2&1&3 \\ 6&0&8
\end{vmatrix}
\begin{matrix}
7&0 \\ 2&1 \\ 6&0
\end{matrix}
= ( 7\cdot 1\cdot 8) - ( 6\cdot 1\cdot 5) = 26\,.
\]
\end{enumerate}
\end{document}
```
| 5 | https://tex.stackexchange.com/users/5001 | 684039 | 317,343 |
https://tex.stackexchange.com/questions/684000 | 1 | My math font is `mathabx`. I love this font, but I have to use `<` and `\prec`, and both symbols are so similar in this font.
Therefore, I'm trying to use `\prec` from `cmr` (AMS symbol) to make it different. I read about `\DeclareMathSymbol`, but I don't know how to get the `\prec` code.
Thanks!
| https://tex.stackexchange.com/users/192369 | Use \prec from AMS | true | Redeclare the symbols to use Computer Modern.
```
\documentclass{article}
\usepackage{mathabx}
\DeclareSymbolFont{cmsymbols}{OMS}{cmsy}{m}{n}
\SetSymbolFont{cmsymbols}{bold}{OMS}{cmsy}{b}{n}
\DeclareMathSymbol{\succ}{\mathrel}{cmsymbols}{"1F}
\DeclareMathSymbol{\prec}{\mathrel}{cmsymbols}{"1E}
\DeclareMathSymbol{\succeq}{\mathrel}{cmsymbols}{"17}
\DeclareMathSymbol{\preceq}{\mathrel}{cmsymbols}{"16}
\begin{document}
$<\prec>\succ\le\preceq\ge\succeq$
\end{document}
```
| 1 | https://tex.stackexchange.com/users/4427 | 684049 | 317,346 |
https://tex.stackexchange.com/questions/684007 | 1 | Sorry, but I am so bad in English.
I try my best to describe my problem.
Here is an example
```
\usepackage{ulem}
\usepackage{xparse}
\NewDocumentCommand{\test}{o m}{
% #1#2
}
\begin{document}
%\uline{\test[ab]{c d}} %fine
\uline{\test[a b]{c d}}
\end{document}
```
log:
```
Runaway argument?
\ERROR {c d}\xdef \UL@spfactor {\the \spacefactor } \UL@end *
./test.tex:60: Paragraph ended before \test was complete.
<to be read again>
\par
l.60
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
```
`\uline{\test[ab]{c d}}` is fine.
but `\uline{\test[a b]{c d}}` raised an error, where the difference between them is the optional argument `[ab]` and `[a b]` (there is a white space between `a` and `b`).
What should I do if I want something like `\uline{\test[a b]{c d}}` to work fine?
thanks!
| https://tex.stackexchange.com/users/268462 | xparse command optional argument in \uline{} error | true | `\uline` starts off its job by splitting its argument at spaces. Those inside *braces* are not taken into account when doing this splitting, but there's no way to exclude from consideration those appearing in *brackets*. This ends up in examining `\test[a` as a single chunk, which will break.
`\test[{a b}]{c d}` should do.
Maybe you've better luck with `lua-ul` (which requires LuaLaTeX).
| 1 | https://tex.stackexchange.com/users/4427 | 684050 | 317,347 |
https://tex.stackexchange.com/questions/684029 | 0 | Within a list environment, enumerate say, how can I place some text, between or before items.
MWE:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
% Text here to be at margin
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
I am aware of the start/resume functionality offered by `enumitem`, however, I need to be able to do this *before* any items are called (i.e. before First item). I require this as part of a separate command that I am preparing which needs flexibility to be called anywhere within the list.
Ideally, say, if there was a command like `\atMargin{Here is the text}` which just printed the text at the margin, that would solve the problem.
My current solution involves introducing a phantom item and then attempting to negate the space from this, but of course is suboptimal:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item[] \vspace{-1cm}
\end{enumerate}
Text at margin
\begin{enumerate}[resume]
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/136988 | Place text at margin, breaking a list (flexibility to work before items required) | false | Assuming that you want it at the level of the first item:
```
\documentclass{article}
\usepackage{enumitem}
\reversemarginpar %left side for better view
\begin{document}
\begin{enumerate}
\AddToHookNext{para/begin}{\marginpar{Text here to be at margin}}
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/2388 | 684052 | 317,348 |
https://tex.stackexchange.com/questions/684029 | 0 | Within a list environment, enumerate say, how can I place some text, between or before items.
MWE:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
% Text here to be at margin
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
I am aware of the start/resume functionality offered by `enumitem`, however, I need to be able to do this *before* any items are called (i.e. before First item). I require this as part of a separate command that I am preparing which needs flexibility to be called anywhere within the list.
Ideally, say, if there was a command like `\atMargin{Here is the text}` which just printed the text at the margin, that would solve the problem.
My current solution involves introducing a phantom item and then attempting to negate the space from this, but of course is suboptimal:
```
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item[] \vspace{-1cm}
\end{enumerate}
Text at margin
\begin{enumerate}[resume]
\item First item
\item Second item
\item Third item
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/136988 | Place text at margin, breaking a list (flexibility to work before items required) | false |
```
\RaggedRight {\tabitem text.
\newline \tabitem text.
\newline \tabitem text.
```
Insert whatever text you need.
```
\newline \tabitem text.}
& \RaggedRight{\tabitem text.
```
`tabitem` can be used to prepare the list. So, text can be inserted anywhere.
```
\newline \tabitem text.}
```
| -1 | https://tex.stackexchange.com/users/295821 | 684056 | 317,349 |
https://tex.stackexchange.com/questions/684058 | 1 | Have been using `natbib` with `plainnat` style and had all entries show but wanted to switch it to Harvard formatting (`agsm` style). However, once I've changed it some entries don't show up any more.
For example,
```
@techreport{lcabc_2022,
author={Frank Mittelbach and Kim Cheslak and Jim Edelson},
title={Lifecycle GHG Impacts in Building Codes},
institution ={New Buildings Institute},
year={2022},
month={01},
URL = {https://newbuildings.org/wp-content/uploads/2022/04/LifecycleGHGImpactsinBuildingCodes.pdf},
note = {Accessed: 06 Febraury 2023}
}
```
When its also been referenced in the text and shows up when I change back to plainnat style?
| https://tex.stackexchange.com/users/295843 | natbib package not showing all bibliography entries in agsm style | false | (too long for a comment, hence posted as an answer)
Let me reinforce the message of @egreg's comment: I am also unable to reproduce the issue you report to have encountered if I augment your code snippet into a minimally compilable test document. There must be something either in the bib entry in question or in the citation call-out that you haven't reported yet. Are there any error messages in the blg (BibTeX log) file?
```
\documentclass{article}
\begin{filecontents}[overwrite]{test.bib}
@techreport{lcabc_2022,
author = {Frank Mittelbach and Kim Cheslak and Jim Edelson},
title = {Lifecycle {GHG} Impacts in Building Codes},
institution ={New Buildings Institute},
year = 2022,
month = 01,
URL = {https://newbuildings.org/wp-content/uploads/2022/04/LifecycleGHGImpactsinBuildingCodes.pdf},
note = {Accessed: 06 February 2023}
}
\end{filecontents}
\usepackage{natbib}
\bibliographystyle{agsm}
\usepackage{xurl}
\let\harvardurl\url % redefine \harvardurl
\begin{document}
\noindent
\cite{lcabc_2022}
\bibliography{test}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/5001 | 684062 | 317,351 |
https://tex.stackexchange.com/questions/684051 | 1 | I'd like to add only one quote in Japanese in my document.
My document looked perfect, but when I added
```
\usepackage{CJKutf8}
```
at the beginning and
```
\begin{CJK}{UTF8}{min}水が綺麗になら虹も一杯\end{CJK}
```
where I wanted the quote, all my subsubsection titles lost their boldness, as the titles of my item lists. What did I do wrong? Here are the packages I use, if it's useful:
```
\documentclass[twoside,openright,12pt]{report}
\usepackage[a4paper,left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[table,xcdraw]{xcolor}
% BIBLIOGRAPHIE
\usepackage[style=authoryear-icomp,autolang=hyphen]{biblatex}
\addbibresource{essai.bib}
\DeclareCiteCommand{\citehyperref}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\bibhyperref{\usebibmacro{title}\printtext[parens]{\printfield{year}}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareFieldFormat[article,book,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{\printnames{author}\addcolon\space\textit{#1}\isdot}
% FIN BIBLIOGRAPHIE
\usepackage{setspace}
\usepackage[french]{babel}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\usepackage{epigraph} % citation retenue
\usepackage{etoolbox}
\usepackage{datetime}
\newdate{datexxx}{01}{09}{2023}
\date{\displaydate{datexxx}}
\usepackage{tcolorbox}
\newenvironment{dialogue}{\parskip=0pt\relax\obeylines}\smallskip
\usepackage{uarial}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\setlength{\headheight}{35pt}
\usepackage{titling}
\newcommand{\subtitle}[1]{%
\posttitle{%
\par\end{center}
\begin{center}\large#1\end{center}
\vskip0.5em}%
}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\title{XXX}
\subtitle{XXX}
\author{XXX}
\usepackage{hyperref,xcolor}
\definecolor{winered}{rgb}{0,0,0.5}
\definecolor{gris}{rgb}{0.2,0.2,0.2}
\definecolor{bleuclair}{RGB}{207,231,226}
\definecolor{vert}{RGB}{132,246,132}
\hypersetup
{
pdfauthor={César},
pdfsubject={XXX},
pdftitle={XXX},
pdfkeywords={xxx, yyy, zzz},
% colorlinks=false,
pdfborder={0 0 0},
colorlinks=true,
linkcolor={gris},
urlcolor={winered},
filecolor={winered},
citecolor={winered}
}
% --- Glossaire et acronymes
\usepackage{glossaries}
\makeglossaries
\newacronym{xxx}{XXX}{XXX XX}
\frenchbsetup{StandardLists=true}
\usepackage{enumitem}
```
| https://tex.stackexchange.com/users/181342 | Package CJKutf8 causes problems with text formatting | false | I think using a method like the following is much more simple and modern. Note that you need to use LuaLaTeX (recommended) or XeLaTeX.
```
\documentclass{article}
\usepackage{lipsum}
\usepackage{fontspec}
\newfontfamily\jptxt{HaranoAjiMincho}
\title{English and {\jptxt 日本語}}
\author{Me or {\jptxt 私}}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1-1]
\end{abstract}
\tableofcontents
\section{Hello world}
\lipsum[1-1]
\section{{\jptxt 水が綺麗になら虹も一杯}}
\lipsum[1-1]
\end{document}
```
This loads a Unicode font which is distributed with LaTeX-distributions.
| 1 | https://tex.stackexchange.com/users/174620 | 684065 | 317,352 |
https://tex.stackexchange.com/questions/684068 | 0 | I found in [github](https://github.com/cgnieder/tasks/issues/8), that I can set the item-format of a task list to math mode using `\ensuremath`. This seems to be equivalent to inline math i.e. for writing something like `\task \(x^2 + y^2 = z^2\)`. But what can I do to get the equivalent to
```
\task
\begin{equation*}
x^2 + y^2 = z^2
\end{equation*}
```
I tried to `item-format = \ensuremath\displaystyle`. But this doesn't work.
Here is the MWE from github:
```
\documentclass{article}
\usepackage{tasks}[2016/05/02]
\settasks{
item-format = \ensuremath
}
\begin{document}
\begin{tasks}(4)
\task y + 4x
\task \sin(x)
\task \int e^x \,dx
\task a^2 + b^2
\end{tasks}
\end{document}
```
| https://tex.stackexchange.com/users/21557 | Tasks: Automatic displaystyle math for items | true | The value for `item-format` can be a one-argument command.
```
\documentclass{article}
\usepackage{tasks}
\NewDocumentCommand{\ensuredisplaymath}{m}{\ensuremath{\displaystyle#1}}
\settasks{
item-format = \ensuredisplaymath
}
\begin{document}
\begin{tasks}(4)
\task y + 4x
\task \sin(x)
\task \int e^x \,dx
\task a^2 + b^2
\end{tasks}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/4427 | 684076 | 317,357 |
https://tex.stackexchange.com/questions/684073 | 1 | I have been trying for a while now to fit my longtable within the page margins. Unfortunately no success. Any help would be highly appreciated. Thanks!
```
\begin{longtable}[c]{|l|llllll|}
\caption{ABC}
\label{tab:my-table}\\
\hline
\multicolumn{1}{|c|}{\multirow{2}{*}{Title and Reference}} &
\multicolumn{6}{c|}{Match for "Operation Management of Urban Service Robots" with Sub-Topic} \\ \cline{2-7}
\multicolumn{1}{|c|}{} &
\multicolumn{1}{l|}{Smart City and Robotics} &
\multicolumn{1}{l|}{Singular Robots} &
\multicolumn{1}{l|}{Multiple Robots} &
\multicolumn{1}{l|}{Assistance Infrastructure} &
\multicolumn{1}{l|}{Responsible Energy Consumption} &
Time Management \\ \hline
\endhead
%
ABC &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
&
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
\end{longtable}
```
| https://tex.stackexchange.com/users/295855 | Longtable not fitting within the page margins | false |
```
\documentclass[12pt,a4,twoside]{article}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{float}
\usepackage{blindtext, pdflscape}
\usepackage{tabularx}
\usepackage{geometry}
\usepackage{ltablex}
\usepackage{caption}
\begin{document}
\setlength{\arrayrulewidth}{0.2mm} % To change table line thickness
\setlength{\tabcolsep}{1pt}
\renewcommand{\arraystretch}{1}
\begin{longtable}[c]{|l|llllll|}
\caption{ABC}
\label{tab:my-table}\\
\hline
\multicolumn{1}{|c|}{\multirow{2}{*}{\makecell{Title \\ and \\ Reference}}} &
\multicolumn{6}{c|}{\makecell{Match for "Operation Management of Urban Service Robots" \\ with Sub-Topic}} \\ \cline{2-7}
\multicolumn{1}{|c|}{} &
\multicolumn{1}{l|}{\makecell{Smart City \\ and \\ Robotics}} &
\multicolumn{1}{l|}{\makecell{Singular \\ Robots}} &
\multicolumn{1}{l|}{\makecell{Multiple \\ Robots}} &
\multicolumn{1}{l|}{\makecell{Assistance \\ Infrastructure}} &
\multicolumn{1}{l|}{\makecell{Responsible \\ Energy \\ Consumption}} &
\multicolumn{1}{l|}{\makecell{Time\\ Management}} \\ \hline
\endhead
%
ABC &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
&
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
\end{longtable}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/295821 | 684082 | 317,358 |
https://tex.stackexchange.com/questions/684073 | 1 | I have been trying for a while now to fit my longtable within the page margins. Unfortunately no success. Any help would be highly appreciated. Thanks!
```
\begin{longtable}[c]{|l|llllll|}
\caption{ABC}
\label{tab:my-table}\\
\hline
\multicolumn{1}{|c|}{\multirow{2}{*}{Title and Reference}} &
\multicolumn{6}{c|}{Match for "Operation Management of Urban Service Robots" with Sub-Topic} \\ \cline{2-7}
\multicolumn{1}{|c|}{} &
\multicolumn{1}{l|}{Smart City and Robotics} &
\multicolumn{1}{l|}{Singular Robots} &
\multicolumn{1}{l|}{Multiple Robots} &
\multicolumn{1}{l|}{Assistance Infrastructure} &
\multicolumn{1}{l|}{Responsible Energy Consumption} &
Time Management \\ \hline
\endhead
%
ABC &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
&
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
\end{longtable}
```
| https://tex.stackexchange.com/users/295855 | Longtable not fitting within the page margins | false | I suggest you (a) get rid of all `\multicolumn{1}` "wrappers", (b) load the `xltabular` package and switch from a `longtable` to an `xltabular` environment -- the main advantage being that you can set a target width of an `xltabular` environment, and (c) employ the `X` column type in all 7 columns in order to allow automatic line breaking.
I would also give the table a more open and inviting look by (i) getting rid of all vertical rules and (ii) using fewer, but well-spaced, horizontal rules.
```
\documentclass{article}
\usepackage[english]{babel}
\usepackage{xltabular,ragged2e,amsmath,booktabs,makecell}
\newcolumntype{L}{>{\RaggedRight\hspace{0pt}}X}
\newcolumntype{C}{>{\Centering\hspace{0pt}}X}
\hyphenation{infra-struc-ture con-sump-tion}
\begin{document}
\setlength\tabcolsep{2pt} % default: 6pt
\begin{xltabular}{\textwidth}{@{} L CCCCCC @{}}
\caption{ABC} \label{tab:my-table}\\
\toprule
Title and Reference &
\multicolumn{6}{c}{\makecell[t]{Match for ``Operation
Management of \\Urban Service Robots'' with Sub-Topic}} \\
\cmidrule(l){2-7}
&
Smart City and Robotics &
Singular Robots &
Multiple Robots &
Assistance Infrastructure &
Responsible Energy Consumption &
Time Management \\
\midrule
\endhead
ABC \\
\addlinespace
DEF \\
\bottomrule
\end{xltabular}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/5001 | 684083 | 317,359 |
https://tex.stackexchange.com/questions/684079 | 1 | I have a keyboard layout with a layer of Cyrillic letters and use those sometimes in math texts through Luatex (more precisely, the compiler tells me it is using LuaHBTeX, Version 1.16.0). This works well outside of mathmode but if I type Cyrillic letters inside it, I get a message
`Missing character: There is no ю (U+044E) in font cmmi7!`
or the same for with `cmmi10` or other Cyrillic letters. This is though I use Xits as the default math font, which, I think, should have these symbols. What's wrong with my setup?
Here is the relevant portion of my default configuration:
```
\RequirePackage{fontsetup}
\RequirePackage[english,russian]{babel}
\RequirePackage{unicode-math}
\RequirePackage{fontspec}
\setmainfont{CMU Serif}
\setmathfont{XITS Math}
```
| https://tex.stackexchange.com/users/270912 | What's wrong with my Luatex-Xits setup that it can't write Cyrillic in mathmode? | true | There is no ю in the math font. Use the symbol from the text font:
```
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{CMU Serif}
\setmathfont{XITS Math}
\begin{document}
ю $\mathit{ю}$
\end{document}
```
| 1 | https://tex.stackexchange.com/users/187802 | 684084 | 317,360 |
https://tex.stackexchange.com/questions/683892 | -1 | I have code, I didn't write and I don't understand. It works just fine, but the equation counter isn't correct in the list of equations. In the document the counter starts with 1, as I want it to. But in the list of equations the counter starts with 0.
Could someone help and tell me, what I should add to solve that problem?
```
\documentclass[twoside,a4paper,11pt,openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{newtxtext, newtxmath}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{microtype}
\usepackage[inner=25mm,outer=35mm,top=20mm,bottom=30mm,]{geometry}
\usepackage{array}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\selectlanguage{german}
\usepackage{siunitx}
\usepackage{chemformula}
\usepackage{tocloft} % eigene "list of things"
\usepackage{caption}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
% redefinition of \equation for convenience
\let\oldequation = \equation
\let\endoldequation = \endequation
\AtBeginDocument{\let\oldlabel = \label}
\newcommand{\mynewlabel}[1]{%
\StrBehind{#1}{eq:}[\Str]% remove "eq:" from labels
\edef\temp{\noexpand\myequations{\Str\noexpand\quad\expandonce{\@currentlabel}}}% add tag to the entry in the list of equations
\temp % execute the command
\oldlabel{#1} % call the original label command
\myequations{\Str}\oldlabel{#1}}
\renewenvironment{equation}{%
\oldequation
\let\label\mynewlabel
}{\endoldequation}
%\newcommand{\listequationsname}{} %Formelverzeichnis
\newlistof{myequations}{equ}{Formelverzeichnis}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}}
\setlength{\cftmyequationsnumwidth}{3em}
\makeatother
\begin{document}
\begin{align}
Q(t) = Q(t_0) + \int\limits_{t_0}^{t} I(t)\ \mathrm{d}t
\myequations{elektrische Ladung}
\end{align}
\begin{align}
R_i = {\frac {U_0 - U_l}{I_l}}
\myequations{Innenwiderstand} %\nomenclature
\end{align}
\newpage
\listofmyequations
\end{document}
```
| https://tex.stackexchange.com/users/295637 | Start counting by 1 instead of 0, list of equations | false | It works with both codes if you use `equation` environment and place `\myequations` after the environment.
### Adaptations
* commented out unused packages
### Code 1
* based on [this answer](https://tex.stackexchange.com/a/173104/123129)
```
\documentclass[twoside,a4paper,11pt,openright]{report}
\usepackage{tocloft}
\usepackage{amsmath}
\usepackage[inner=25mm,outer=35mm,top=20mm,bottom=30mm,]{geometry}
%%gmedina solution
\newcommand{\listequationsname}{Formelverzeichnis}
\newlistof{myequations}{equ}{\listequationsname}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
\setlength{\cftmyequationsnumwidth}{2.5em}% Width of equation number in List of Equations
\begin{document}
\begin{equation}
Q(t) = Q(t_0) + \int\limits_{t_0}^{t} I(t)\ \mathrm{d}t
\end{equation}
\myequations{elektrische Ladung}
\begin{equation}
R_i = {\frac {U_0 - U_l}{I_l}}
\end{equation}
\myequations{Innenwiderstand} %\nomenclature
\newpage
\listofmyequations
\end{document}
```
### Code 2
* based on [this answer](https://tex.stackexchange.com/a/14328/123129)
```
\documentclass[twoside,a4paper,11pt,openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
%\usepackage{newtxtext, newtxmath}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
%\usepackage{microtype}
\usepackage[inner=25mm,outer=35mm,top=20mm,bottom=30mm,]{geometry}
%\usepackage{array}
%\usepackage[pdftex]{graphicx}
%\usepackage{float}
\selectlanguage{german}
%\usepackage{siunitx}
%\usepackage{chemformula}
\usepackage{tocloft} % eigene "list of things"
%\usepackage{caption}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
% redefinition of \equation for convenience
\let\oldequation = \equation
\let\endoldequation = \endequation
\AtBeginDocument{\let\oldlabel = \label}
\newcommand{\mynewlabel}[1]{%
\StrBehind{#1}{eq:}[\Str]% remove "eq:" from labels
\edef\temp{\noexpand\myequations{\Str\noexpand\quad\expandonce{\@currentlabel}}}% add tag to the entry in the list of equations
\temp % execute the command
\oldlabel{#1} % call the original label command
\myequations{\Str}\oldlabel{#1}}
\renewenvironment{equation}{%
\oldequation
\let\label\mynewlabel
}{\endoldequation}
%\newcommand{\listequationsname}{} %Formelverzeichnis
\newlistof{myequations}{equ}{Formelverzeichnis}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}}
\setlength{\cftmyequationsnumwidth}{3em}
\makeatother
\begin{document}
\begin{equation}
Q(t) = Q(t_0) + \int\limits_{t_0}^{t} I(t)\ \mathrm{d}t
\end{equation}
\myequations{elektrische Ladung}
\begin{equation}
R_i = {\frac {U_0 - U_l}{I_l}}
\end{equation}
\myequations{Innenwiderstand} %\nomenclature
\newpage
\listofmyequations
\end{document}
```
### Result
| 2 | https://tex.stackexchange.com/users/123129 | 684089 | 317,364 |
https://tex.stackexchange.com/questions/684073 | 1 | I have been trying for a while now to fit my longtable within the page margins. Unfortunately no success. Any help would be highly appreciated. Thanks!
```
\begin{longtable}[c]{|l|llllll|}
\caption{ABC}
\label{tab:my-table}\\
\hline
\multicolumn{1}{|c|}{\multirow{2}{*}{Title and Reference}} &
\multicolumn{6}{c|}{Match for "Operation Management of Urban Service Robots" with Sub-Topic} \\ \cline{2-7}
\multicolumn{1}{|c|}{} &
\multicolumn{1}{l|}{Smart City and Robotics} &
\multicolumn{1}{l|}{Singular Robots} &
\multicolumn{1}{l|}{Multiple Robots} &
\multicolumn{1}{l|}{Assistance Infrastructure} &
\multicolumn{1}{l|}{Responsible Energy Consumption} &
Time Management \\ \hline
\endhead
%
ABC &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
&
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{} &
\\ \hline
\end{longtable}
```
| https://tex.stackexchange.com/users/295855 | Longtable not fitting within the page margins | false | * You not provide any information about your document set up. Consequently are unknown page layout, used font and it size. Both are have strong influence on page looks.
* For your long table a I would use `longtblr` of `tabularray` package.
* MWE (Minimal Working Example) below provide two cases of table design:
```
\documentclass{article}
\usepackage{geometry}
\usepackage[english]{babel}
\hyphenation{infra-struc-ture con-sump-tion}
\usepackage{newtxtext, newtxmath}
\usepackage{ragged2e}
\usepackage{tabularray}
\UseTblrLibrary{amsmath,booktabs}
\begin{document}
With cells in "jail" of horizontal and "vertical" rules:
\begin{longtblr}[
caption = {ABC},
label = {tab:my-table}
]{hlines, vlines,
colsep = 3pt,
colspec = { X[l] *{6}{X[cmd=\Centering\hspace{0pt}]} },
hspan = minimal,
rowhead = 2
}
\SetCell[r=2]{c} Title and Reference
& \SetCell[c=6]{c} Match for ``Operation Management of Urban Service Robots'' with Sub-Topic
& & & & & \\
& Smart City and Robotics
& Singular Robots
& Multiple Robots
& Assistance Infrastructure
& Responsible Energy Consumption
& Time Management \\
ABC & 1 & 2 & 3 & 4 & 5 & 6 \\
DEF & & & & & & \\
\end{longtblr}
or with use \verb+booktabs+ rules:
\begin{longtblr}[
caption = {ABC},
label = {tab:my-table}
]{colsep = 3pt,
colspec = {@{} X[l] *{6}{X[cmd=\Centering\hspace{0pt}]} @{}},
hspan = minimal,
rowhead = 2
}
\toprule
\SetCell[r=2]{c} Title and Reference
& \SetCell[c=6]{c} Match for ``Operation Management of Urban Service Robots'' with Sub-Topic
& & & & & \\
\midrule
& Smart City and Robotics
& Singular Robots
& Multiple Robots
& Assistance Infrastructure
& Responsible Energy Consumption
& Time Management \\
\midrule
ABC & 1 & 2 & 3 & 4 & 5 & 6 \\
DEF & & & & & & \\
\bottomrule
\end{longtblr}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/18189 | 684091 | 317,366 |
https://tex.stackexchange.com/questions/684092 | 0 | I have a problem with the LaTeX. I have to put in the same picture a tikzpicture and a table (in ambient tabular) side-by-side, with the same caption.
Below you find my code:
```
\begin{figure}
\centering
\begin{subfigure}[b]{0.5\textwidth}
\begin{tikzpicture}[inner sep=0.6mm, placew/.style={circle,draw=black!100,fill=white!100,thick}]
\node (v1) at (-1,-1) [placew,label=270:{\footnotesize$v_1$}] {};
\node (v2) at (1,-1) [placew,label=270:{\footnotesize$v_2$}] {};
\node (v3) at (1,1) [placew,label=90:{\footnotesize$v_3$}] {};
\node (v4) at (-1,1) [placew,label=45:{\footnotesize$v_4$}] {};
\node (v5) at (-1,2) [placew,label=45:{\footnotesize$v_5$}] {};
\draw[thick] (v1) -- (v2);
\draw[thick] (v2) -- (v3);
\draw[thick] (v3) -- (v4);
\draw[thick] (v1) -- (v4);
\draw[thick] (v4) -- (v5);
\end{tikzpicture}
\end{subfigure}%
\begin{subfigure}[b]{0.6\textwidth}
\centering
\begin{tabular}{| l | l | l | l | l | l | p{0.2cm} |}
\hline
& $v_1$ & $v_2$ & $v_3$ & $v_4$ & $v_5$ \\ \hline
$v_1$ & 0 & 1 & 0 & 1 & 0 \\ \hline
$v_2$ & 1 & 0 & 1 & 0 & 0 \\ \hline
$v_3$ & 0 & 1 & 0 & 1 & 0 \\ \hline
$v_4$ & 1 & 0 & 1 & 0 & 1 \\ \hline
$v_5$ & 0 & 0 & 0 & 1 & 0 \\ \hline
\end{tabular}
\end{subfigure}
\caption{The Graph of Example \ref{RemAttr2} and its Adjacence Matrix.}\label{fig:Graph1}
\end{figure}
```
However, LaTeX reports the following error:
>
> ! Missing number, treated as zero.
>
> }
> l.1298 \begin{subfigure}[b]{0.5\textwidth}
>
>
>
How to solve it?
| https://tex.stackexchange.com/users/74263 | Placing a TikZ-picture and a table side-by-side with the same caption | false | I guess, that you after following:
```
\documentclass{article}
\usepackage{caption}
\usepackage{tikz}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[baseline,
inner sep=0.6mm,
placew/.style={circle,draw=black!100,fill=white!100,thick}
]
\node (v1) at (-1,-1) [placew,label=270:{\footnotesize$v_1$}] {};
\node (v2) at (1,-1) [placew,label=270:{\footnotesize$v_2$}] {};
\node (v3) at (1,1) [placew,label=90:{\footnotesize$v_3$}] {};
\node (v4) at (-1,1) [placew,label=45:{\footnotesize$v_4$}] {};
\node (v5) at (-1,2) [placew,label=45:{\footnotesize$v_5$}] {};
\draw[thick] (v1) -- (v2);
\draw[thick] (v2) -- (v3);
\draw[thick] (v3) -- (v4);
\draw[thick] (v1) -- (v4);
\draw[thick] (v4) -- (v5);
\end{tikzpicture}
\hfil
\begin{tabular}{| l | l | l | l | l | l | p{0.2cm} |}
\hline
& $v_1$ & $v_2$ & $v_3$ & $v_4$ & $v_5$ \\ \hline
$v_1$ & 0 & 1 & 0 & 1 & 0 \\ \hline
$v_2$ & 1 & 0 & 1 & 0 & 0 \\ \hline
$v_3$ & 0 & 1 & 0 & 1 & 0 \\ \hline
$v_4$ & 1 & 0 & 1 & 0 & 1 \\ \hline
$v_5$ & 0 & 0 & 0 & 1 & 0 \\ \hline
\end{tabular}
\caption{The Graph of Example \ref{RemAttr2} and its Adjacence Matrix.}\label{fig:Graph1}
\end{figure}
\end{document}
```
**Addendum:**
with use of `tblr` table and redrawing `tikzpicture`:
```
\documentclass{article}
\usepackage{caption}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{tabularray}
\UseTblrLibrary{amsmath,booktabs}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[baseline,
node distance = 17mm and 17mm, on grid,
C/.style = {circle, draw, thick, inner sep=1pt,
label = #1,
node contents = {}},
every label/.append style = {font=\footnotesize}
]
\node (v1) [C=270:$v_1$];
\node (v2) [C=270:$v_2$, right=of v1];
\node (v3) [C= 90:$v_3$, above=of v2];
\node (v4) [C= 45:$v_4$, above=of v1];
\node (v5) [C= 45:$v_5$, above=of v4];
\draw[thick] (v1) -- (v2) -- (v3) -- (v4) -- (v5)
(v1) -- (v4);
\end{tikzpicture}
\hfil
\begin{tblr}[b]{hlines, vlines,
colspec = { *{6}{Q[c, wd=2em, mode=math]} }
}
& v_1 & v_2 & v_3 & v_4 & v_5 \\
v_1 & 0 & 1 & 0 & 1 & 0 \\
v_2 & 1 & 0 & 1 & 0 & 0 \\
v_3 & 0 & 1 & 0 & 1 & 0 \\
v_4 & 1 & 0 & 1 & 0 & 1 \\
v_5 & 0 & 0 & 0 & 1 & 0 \\
\end{tblr}
\caption{The Graph of Example \ref{RemAttr2} and its Adjacence Matrix.}
\label{fig:Graph1}
\end{figure}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/18189 | 684095 | 317,367 |
https://tex.stackexchange.com/questions/540259 | 2 | I am attempting to create "parallel" text that is temporal in nature. For example, the second author wrote the beginning, the first author wrote the second section, the fourth author wrote the third section, the third author wrote the fourth section, the fourth author wrote the fifth section, the first author wrote the sixth section, etc... The text should not align but should allow the reader to move between these sections in order. I have examined the paracol documentation and googled the issue. Apologies if I have misspecified the problem or overlooked a resource. I have included a MWE. TIA.
```
\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{paracol}
\begin{document}
\centering Introduction \\
\raggedright
This is an introductory paragraph. \\
The document should be able to ``bounce'' back and forth between columns. For example, columns 2, 1, 4, 3, 2, 1, 4, 3, \dots
\begin{paracol}{4}
\textbf{This is the second paragraph and should align with the bottom of the first paragraph (second column).}
\switchcolumn*[1]
\textbf{This is the first paragraph.}
\blindtext
\switchcolumn*[0]
\textbf{This is the fourth paragraph and should align with the bottom of the third paragraph (fourth column).}
\blindtext
\switchcolumn*[3]
\textbf{This is the third paragraph and should align with the bottom of the second paragraph (first column).}
\blindtext
\switchcolumn*[2]
\end{paracol}
\end{document}
```
| https://tex.stackexchange.com/users/213540 | Staggering Columns using paracol | false | You can do this with [`paracol`](https://ctan.org/pkg/paracol) and your code is very close as is.
If you look at the compilation the paragraphs are staggered in separate columns but just jump right one column, rather than to the specified column, and the specified column numbers are actually getting typeset instead.
This is because the intended usage is `\switchcolumn[i]*` (which is arguably unusual for LaTeX syntax).
On top of that `\switchcolumn` needs to come before rather than after (text is typeset immediately, so typeset according to the preceding `\switchcolumn` directive).
After that, text either needs to come in the correct vertical/temporal order or be input (alongside some argument to indicate order) into some macros which can store and sort the paragraphs as necessary.
The former is naturally much easier.
```
\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{paracol}
\begin{document}
This is an introductory paragraph.
The document should be able to ``bounce'' back and forth between columns. For example, columns 2, 1, 4, 3, 2, 1, 4, 3, \dots
\begin{paracol}{4}
\switchcolumn[1]*
\textbf{This is the first paragraph.}
\blindtext
\switchcolumn[0]*
\textbf{This is the second paragraph and should align with the bottom of the first paragraph (second column).}
\switchcolumn[3]*
\textbf{This is the third paragraph and should align with the bottom of the second paragraph (first column).}
\blindtext
\switchcolumn[2]*
\textbf{This is the fourth paragraph and should align with the bottom of the third paragraph (fourth column).}
\blindtext
\end{paracol}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/106162 | 684097 | 317,368 |
https://tex.stackexchange.com/questions/684135 | 1 | I know how to get the following symbol:
>
> **≺**
> =====
>
>
>
How to I get the reverse of the precedence operator (Unicode character `U+227A`)?
That is, what is the LaTeX code for the precedence operator, especially the symbol where the left end is wide and the right-end is small or tapered to a fine point?
| https://tex.stackexchange.com/users/178952 | In TeX or LaTeX how do you get the precedence operator? | true | The following answer is due to [Barbara Beeton](https://tex.stackexchange.com/users/579/barbara-beeton)
```
\succ
```
The successor operator looks like this after rendering:
>
> ≻
> =
>
>
>
| 1 | https://tex.stackexchange.com/users/178952 | 684139 | 317,383 |
https://tex.stackexchange.com/questions/684136 | 1 | The following code results in the arrow not beginning at the `\ell` but in the center of the colored box instead. How to fix that? (`remember picture` has been defined in the preamble to be included in every tikz environment)
```
\[
x(t) =
\int_0^t
\tikz[baseline]{\node[fill=blue!20,anchor=base] (t3) {$
\tikz[baseline]{\node[inner sep=0pt,outer sep=0pt] (ell) {$\ell$}}
(z)$} }
\, ds
\]
\begin{tikzpicture}[remember picture,overlay]
\draw[black,thick,->] (ell) to [in=90,out=245] +(225:2cm) node[anchor=north,text=black] {instant};
\end{tikzpicture}
```
| https://tex.stackexchange.com/users/295027 | Wrong tikz arrow centering on cross-referencing node labels | false | I guess/suspect, that you looking for something like this:
but I'm not sure. For above result you need to compile MWE below at least three times.
```
\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\usetikzlibrary{tikzmark} % <---
\tikzset{is/.style = {inner ysep=2pt}}
\begin{document}
\lipsum[1][1-2]
\[
x(t) = \int_0^t \colorbox{blue!20}{$\tikzmarknode[is]{A}{\ell}(z)$}\, ds
\]
\begin{center}
\begin{tikzpicture}[remember picture,overlay]
\draw[thick,->] (A.south) to [in=90,out=245] +(225:12mm) node[anchor=north] {instant};
\end{tikzpicture}
\bigskip
\end{center}
\lipsum[1][3-5]
\end{document}
```
**Note:** Please in future consider my comment and in question always provide MWE (Minimal Working Example)!
**Addendum:**
for fun and show, how can you working simple solution convert to complex and error prone one:
```
\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
backgrounds,
fit,
shapes.multipart}
\tikzset{every picture/.append style = {remember picture,baseline},
MN/.style = {rectangle split, rectangle split horizontal,
rectangle split parts=2,
inner xsep=0pt, inner ysep=1pt, anchor=base},
FIT/.style = {fit=#1, fill=cyan!50, inner sep=3pt,
node contents={}},
arr/.style = {-Straight Barb, semithick}
}
\begin{document}
\lipsum[1][1-2]
\[
x(t) = \int_0^t \tikz{\node (ell) [MN] {$\ell$\nodepart{two}$(z)$};
\scoped[on background layer]
\node [FIT=(ell)];
}
\, ds
\]
\begin{center}
\begin{tikzpicture}[overlay]
\draw[arr] (ell.one south)..controls +(0,-1) and + (0,1).. ++ (-1,-1) node[below] {instant};
\end{tikzpicture}
\bigskip
\end{center}
\lipsum[1][3-5]
\end{document}
```
It is somehow similar to @Jasper Habicht answer.
| 2 | https://tex.stackexchange.com/users/18189 | 684140 | 317,384 |
https://tex.stackexchange.com/questions/684130 | 1 | I have this very good macro with PStricks.
```
\documentclass{article}
\usepackage{pst-node}
\newcommand*\Tsemb[2]{%
\quitvmode$\vcenter{\vbox{\setbox0\hbox{#1}\setbox1\hbox{#2}\hsize\wd\ifdim\wd0>\wd1 0 \else1 \fi
\offinterlineskip\psset{unit=1ex}%
\hbox to\hsize{\pnode(0,0.2){tl}\hss\pnode(0,1.3){tc}\hss\pnode(0.3,0.5){tr}\pnode(0.35,0.45){tr1}}
\hbox to\hsize{\pnode(-0.2,0){al}\hss#1\hss}\vskip2ex
\hbox to\hsize{\hss#2\hss\pnode(0,2){c}}
\hbox to\hsize{\pnode(-0.35,-0.45){bl1}\pnode(-0.3,-0.5){bl}\hss\pnode(0,-1.3){bc}\hss\pnode(0.2,-0.2){br}}
}}$%
\psecurve[linewidth=0.8pt](tr1)(tr)(tc)(tl)(al)(c)(br)(bc)(bl)(bl1)\hskip1ex
}
\begin{document}
\Tsemb{ABC}{XYZ} and \Tsemb{A'B'C'}{ABC} are similar.
\end{document}
```
But today, I don't use PStricks anymore.Can you do exactly the same but with `TikZ`?
| https://tex.stackexchange.com/users/295892 | From PStricks to Tikz | false | Something like this maybe (it is not *exactly* the same tough ...):
```
\documentclass{article}
\usepackage{tikz}
\newcommand*\Tsemb[2]{%
\begin{tikzpicture}[baseline=0pt]
\pgfmathsetmacro{\mwidth}{max(width"#1",width"#2")}
\node[inner sep=0pt, minimum width=\mwidth] (A) at (0,0.75em) {\strut #1};
\node[inner sep=0pt, minimum width=\mwidth] (B) at (0,-0.75em) {\strut #2};
\draw[thick] (A.north east)
to[out=150, in=30, distance=5pt] (A.north west)
to[out=210, in=150, distance=5pt] (A.south west)
to[out=330, in=150, distance=5pt] (B.north east)
to[out=330, in=30, distance=5pt] (B.south east)
to[out=210, in=330, distance=5pt] (B.south west);
\end{tikzpicture}%
}
\begin{document}
\Tsemb{ABC}{XYZ} and \Tsemb{A'B'C'}{ABC} are similar.
\end{document}
```
| 2 | https://tex.stackexchange.com/users/47927 | 684145 | 317,385 |
https://tex.stackexchange.com/questions/667466 | 2 | [How do I install the Japanese dmjhira font in MikTex 2.9?](https://tex.stackexchange.com/questions/533993/how-do-i-install-the-japanese-dmjhira-font-in-miktex-2-9/534000#534000)
I am trying to do the same task as mentioned in the above question. My goal is to produce the Hiragana "yo" character in my latex file. Right now, I am trying a small test code which is exactly the one in the solution provided to the above question
```
\documentclass{book}
\begin{document}
abc
\font\maljapanese=dmjhira at 2ex
\maljapanese \char"48
\end{document}
```
I am trying to compile it use TeXstudio using PdfLaTeX compile. And I get the following log files where I have hidden some personal information using <---> in the file paths.
1. makepk-log
```
2022-12-04 21:35:19,271-0500 INFO miktex-makepk - this process (16864) started by pdflatex in directory D:\Local Drive\<Univ>\<sem>\Math R\Documents\Set-2\Test with command line: miktex-makepk --verbose dmjhira 517 600 0+517/600
2022-12-04 21:35:19,273-0500 INFO miktex-makepk - running on Windows 10.0.22621
2022-12-04 21:35:19,275-0500 INFO makepk - Trying to make PK font dmjhira at 517 DPI...
2022-12-04 21:35:19,279-0500 INFO makepk - The METFAONT mode is: ljfour
2022-12-04 21:35:19,281-0500 INFO makepk - Running miktex-makemf.exe...
2022-12-04 21:35:19,281-0500 INFO makepk - running: miktex-makemf.exe --miktex-disable-maintenance --miktex-disable-diagnose --verbose dmjhira
2022-12-04 21:35:19,281-0500 INFO miktex-makepk.core - start process: miktex-makemf.exe --miktex-disable-maintenance --miktex-disable-diagnose --verbose dmjhira
2022-12-04 21:35:19,611-0500 INFO makepk - Running miktex-ttf2pk.exe...
2022-12-04 21:35:19,611-0500 INFO makepk - running: miktex-ttf2pk.exe --miktex-disable-maintenance --miktex-disable-diagnose -q -t dmjhira
2022-12-04 21:35:19,611-0500 INFO miktex-makepk.core - start process: miktex-ttf2pk.exe --miktex-disable-maintenance --miktex-disable-diagnose -q -t dmjhira
2022-12-04 21:35:20,043-0500 FATAL miktex-makepk - PK font dmjhira could not be created.
2022-12-04 21:35:20,043-0500 FATAL miktex-makepk - PK font dmjhira could not be created.
2022-12-04 21:35:20,043-0500 FATAL miktex-makepk - Info:
2022-12-04 21:35:20,043-0500 FATAL miktex-makepk - Source:
2022-12-04 21:35:20,043-0500 FATAL miktex-makepk - Line: 0
2022-12-04 21:35:20,051-0500 INFO miktex-makepk - this process (16864) finishes with exit code 1
```
2. makemf-log
```
2022-12-04 21:35:19,533-0500 INFO miktex-makemf - this process (5260) started by miktex-makepk in directory C:\Users\<name>\AppData\Local\Temp\mik38448 with command line: miktex-makemf.exe --miktex-disable-maintenance --miktex-disable-diagnose --verbose dmjhira
2022-12-04 21:35:19,533-0500 INFO miktex-makemf - running on Windows 10.0.22621
2022-12-04 21:35:19,537-0500 FATAL miktex-makemf - The dmjhira source file could not be found.
2022-12-04 21:35:19,537-0500 FATAL miktex-makemf - The dmjhira source file could not be found.
2022-12-04 21:35:19,537-0500 FATAL miktex-makemf - Info:
2022-12-04 21:35:19,537-0500 FATAL miktex-makemf - Source:
2022-12-04 21:35:19,537-0500 FATAL miktex-makemf - Line: 0
2022-12-04 21:35:19,545-0500 INFO miktex-makemf - this process (5260) finishes with exit code 1
```
I have installed MiKTeX for one user only which ended up getting installed in
```
C:\Users\<name>\AppData\Local\Programs\MiKTeX
```
Here's what I have tried so far.
* Refreshing font map files in the Task Menu
* Using commands such as updmap.exe at the address `C:\Users\<name>\AppData\Local\Programs\MiKTeX\miktex\bin\x64`
* Tried to do the same while running the MiKTeX console or the cmd in administrator mode.
* It is also weird that this file compiles when using XeLaTeX compiler in TeXstudio instead of PdfLaTeX.
Lastly, despite what it shows in the log, I am running the latest version of Windows 11 and I am using a Surface Pro 9.
I am also suspecting that it might be some sort of windows permission errors? Though, I am just not sure what is going wrong. In a similar way, the makeidx package doesn't work for me too. It shows error like main.ind not found and in the working directory folder main.ind is never generated as well.
| https://tex.stackexchange.com/users/201600 | Unable to get the japanese character Hiragana "yo" in PdfLaTeX using TeXstudio | false | The answers so far all discuss how to load a legacy 8-bit font. You might need to do this if your publisher or professor still requires you to use PDFTeX, but I would recommend using the modern toolchain, with Unicode and desktop fonts, when you can. This cuts a number of Gordian knots.
Here is a MWE that loads よ from Harano Aji Mincho, a font available from CTAN. It demonstrates using the symbol in text, bold text and math.
```
\documentclass{article}
\tracinglostchars=3
\usepackage{amsmath}
\usepackage{fontspec}
\defaultfontfeatures[HaranoAjiMincho]{
Renderer=HarfBuzz,
Script=Kana,
Scale=MatchUppercase,
UprightFont=*-Light,
BoldFont=*-Medium,
Extension=.otf
}
\newfontfamily\kanafont{HaranoAjiMincho}
\DeclareRobustCommand\yo{\textup{\kanafont よ}}
\begin{document}
The Hirigana for \textit{yo} is {\yo}.
\section*{The Yoneda Embedding \yo}
The Yoneda embedding is \(\yo(\mathcal{K})\).
\end{document}
```
To be able to use the literal よ character in your source, add the lines:
```
\usepackage{newunicodechar}
\newunicodechar{よ}{\yo}
```
| 0 | https://tex.stackexchange.com/users/61644 | 684146 | 317,386 |
https://tex.stackexchange.com/questions/683895 | 1 | I'm using the Roboto light condensed font, and always get the following font warning:
>
> Font shape `OT1/cmr/lc/n' undefined(Font) using` OT1/cmr/m/n' instead
>
>
>
An example document to generate the warning would be:
```
\documentclass{article}
\usepackage[sfdefault, light, condensed]{roboto}
\usepackage[utf8]{inputenc}
\begin{document}
Why does Roboto font give a warning?
\end{document}
```
I am using pdflatex through TeXLive.
Anyone any ideas on how to solve this?
| https://tex.stackexchange.com/users/30958 | Roboto light condensed undefined font shape warning | false | Found also this workaround:
```
\DeclareFontShape{\encodingdefault}{cmr}{lc}{n}{<->ssub*cmr/m/n}{}
\usepackage[sfdefault, light, condensed]{roboto}
```
It sets the missing font (light condensed) for the default LaTeX computer modern font (cmr) to normal cmr.
As Roboto probably should not load cmr light condensed in the first place, it doesn't solve the root problem. But it prevents the warning in a safe way.
| 0 | https://tex.stackexchange.com/users/30958 | 684151 | 317,389 |
https://tex.stackexchange.com/questions/684130 | 1 | I have this very good macro with PStricks.
```
\documentclass{article}
\usepackage{pst-node}
\newcommand*\Tsemb[2]{%
\quitvmode$\vcenter{\vbox{\setbox0\hbox{#1}\setbox1\hbox{#2}\hsize\wd\ifdim\wd0>\wd1 0 \else1 \fi
\offinterlineskip\psset{unit=1ex}%
\hbox to\hsize{\pnode(0,0.2){tl}\hss\pnode(0,1.3){tc}\hss\pnode(0.3,0.5){tr}\pnode(0.35,0.45){tr1}}
\hbox to\hsize{\pnode(-0.2,0){al}\hss#1\hss}\vskip2ex
\hbox to\hsize{\hss#2\hss\pnode(0,2){c}}
\hbox to\hsize{\pnode(-0.35,-0.45){bl1}\pnode(-0.3,-0.5){bl}\hss\pnode(0,-1.3){bc}\hss\pnode(0.2,-0.2){br}}
}}$%
\psecurve[linewidth=0.8pt](tr1)(tr)(tc)(tl)(al)(c)(br)(bc)(bl)(bl1)\hskip1ex
}
\begin{document}
\Tsemb{ABC}{XYZ} and \Tsemb{A'B'C'}{ABC} are similar.
\end{document}
```
But today, I don't use PStricks anymore.Can you do exactly the same but with `TikZ`?
| https://tex.stackexchange.com/users/295892 | From PStricks to Tikz | false | The PSTricks solution a bit shorter:
```
\documentclass{article}
\usepackage{pst-node}
\newcommand*\Tsemb[2]{%
\tabular{c}
\psDefBoxNodes{A}{#1}\\\psDefBoxNodes{B}{#2}
\endtabular%
\psecurve[linewidth=0.8pt](A:br)(A:tr)(A:tl)(A:bl)(B:tr)(B:br)(B:bl)(B:tl)%
}
\begin{document}
\Tsemb{ABC}{XYZ} and \Tsemb{A'B'C'}{ABC} are similar.
\end{document}
```
| 2 | https://tex.stackexchange.com/users/187802 | 684153 | 317,391 |
https://tex.stackexchange.com/questions/684136 | 1 | The following code results in the arrow not beginning at the `\ell` but in the center of the colored box instead. How to fix that? (`remember picture` has been defined in the preamble to be included in every tikz environment)
```
\[
x(t) =
\int_0^t
\tikz[baseline]{\node[fill=blue!20,anchor=base] (t3) {$
\tikz[baseline]{\node[inner sep=0pt,outer sep=0pt] (ell) {$\ell$}}
(z)$} }
\, ds
\]
\begin{tikzpicture}[remember picture,overlay]
\draw[black,thick,->] (ell) to [in=90,out=245] +(225:2cm) node[anchor=north,text=black] {instant};
\end{tikzpicture}
```
| https://tex.stackexchange.com/users/295027 | Wrong tikz arrow centering on cross-referencing node labels | false | You need to add `remember picture` to the a `tikz` environment in order to be able to refer to a node outside of the current environment. However, you should not nest `tikz` environments. This will break several things, of which the right positioning of coordinates using `remember picture` is only one.
Zarko's answer is in fact better and simpler than the following, but I still would like to post this to show you how you could use the `fit` library (in combination with the `backgrounds` library) to "nest" nodes. More correctly, the nodes are not nested, but a node is drawn that is as large as necessary to wrap the other nodes. This would be the correct way to create what you tried if you really wanted to typeset the blue box using Ti*k*Z:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit, backgrounds}
\begin{document}
\[
x(t) = \int_0^t
\tikz[remember picture, baseline]{
\node[anchor=base, inner sep=0pt] (ell) {$\ell$};
\node[anchor=base west, inner sep=0pt] (z) at (ell.base east) {$(z)$};
\begin{scope}[on background layer]
\node[fill=blue!20, fit={(ell) (z)}] {};
\end{scope}
} \, ds
\]
\begin{tikzpicture}[remember picture, overlay]
\draw[black, thick, ->, shorten <=2pt] (ell.270) to [in=90, out=245] ++(225:2cm) node[anchor=north] {instant};
\end{tikzpicture}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/47927 | 684154 | 317,392 |
https://tex.stackexchange.com/questions/32839 | 23 | I'm having some difficult drawing circuit diagrams with logic gates in LaTeX. I've tried with `circuitikz` and `pst-circ`.
```
\begin{pspicture}(-1,-1)(5,3)
\logicand[ninputs=2,invertinputa=true, invertinputb=true](0,0){Name}
\end{pspicture}
```
gives
```
Error: ! Undefined control sequence.
<recently read> \c@lor@to@ps
l.75 ...inputa=true, invertinputb=true](0,0){Name}
?
```
And
```
\begin{circuitikz} \draw
(0,2) node[and port] (myand1) {}
(0,0) node[and port] (myand2) {}
(2,1) node[xnor port] (myxnor) {};
(myand1.out) | (myxnor.in 1)
(myand2.out) | (myxnor.in 2)
\end{circuitikz}
```
produces no error, but also no lines appear between logic gates.
Please help me generate logic diagrams from LaTeX code. (I need AND, OR, NOT, NOR and NAND gates.)
| https://tex.stackexchange.com/users/7356 | Drawing circuit diagrams (with logic gates) in LaTeX | false | Try this [generator](https://latex-editor.pages.dev/graph/) will work for simple cases and it uses Tikz
for your case latex code will be like this:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\begin{document}
\usetikzlibrary {circuits.logic.US}
\begin{tikzpicture}[circuit logic US]
\matrix[column sep=4mm, row sep=4mm] {
\node [and gate ] (f5fbb9ac-ba33-4ab5-96bc-d0af34cee8a1) {}; & & \\
& & \node [xnor gate ] (a6b7442d-0f66-4798-9db4-25a81365166e) {}; \\
\node [and gate ] (ca150480-f272-4220-9df1-14d5893b1ae2) {}; & & \\
};
\draw (f5fbb9ac-ba33-4ab5-96bc-d0af34cee8a1.output) -- ++(right:2mm) |- (a6b7442d-0f66-4798-9db4-25a81365166e.input 1);
\draw (ca150480-f272-4220-9df1-14d5893b1ae2.output) -- ++(right:2mm) |- (a6b7442d-0f66-4798-9db4-25a81365166e.input 2);
\end{tikzpicture}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/244004 | 684155 | 317,393 |
https://tex.stackexchange.com/questions/684144 | 4 | I am trying to set-up a system where I can total a counter for each section and print this, then reset each section.
MWE:
```
\documentclass{article}
\usepackage{xparse}
\usepackage{ifthen}
\usepackage{totcount}
\newcounter{myCounter}[section]
\regtotcounter{myCounter}
\begin{document}
\section{sec1}
\label{sec:sec1}
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\section{sec2}
\label{sec:sec2}
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\stepcounter{myCounter}\themyCounter/\total{myCounter}\\
\end{document}
```
Produces:
```
1 sec1
1/6
2/6
3/6
4/6
2 sec2
1/6
2/6
3/6
4/6
5/6
6/6
```
Desired result:
```
1 sec1
1/4
2/4
3/4
4/4
2 sec2
1/6
2/6
3/6
4/6
5/6
6/6
```
I have attempted to do `\regtotcounter{myCounter}` but no luck.
| https://tex.stackexchange.com/users/136988 | Reseting the TotalCount (totcount) each section | true | You can't do it with `totcount`. Possibly with `xassoccnt`, but it has become unmaintained.
Here's a standalone solution, where at each section change something is written out in the `.aux` file (and also `\AtEndDocument`): for each registered counter, its final value is associated to the current section number.
Therefore we're able to know the total for each section at the next run.
```
\documentclass{article}
\AddToHook{cmd/section/before}{\savesectioncounters}
\AtEndDocument{\savesectioncounters}
\ExplSyntaxOn
\clist_new:N \g__panda_counters_clist
\prop_new:N \g__panda_counters_prop
\AtBeginDocument{\prop_show:N \g__panda_counters_prop}
\NewDocumentCommand{\declaresectioncounter}{m}
{
\clist_gput_right:Nn \g__panda_counters_clist { #1 }
}
\NewDocumentCommand{\savesectioncounters}{}
{
\clist_map_inline:Nn \g__panda_counters_clist
{
\iow_shipout:cx { @mainaux } { \sectioncountertotal{##1}{\use:c{the##1}}{\arabic{section}} }
}
}
\NewDocumentCommand{\sectioncountertotal}{mmm}
{
\prop_gput:Nnn \g__panda_counters_prop { #1@#3 } { #2 }
}
\NewExpandableDocumentCommand{\getsectiontotal}{m}
{
\prop_item:Ne \g__panda_counters_prop { #1@\arabic{section} }
}
\cs_generate_variant:Nn \prop_item:Nn { Ne }
\ExplSyntaxOff
\newcounter{myCounter}[section]
\declaresectioncounter{myCounter}
\begin{document}
\section{sec1}
\label{sec:sec1}
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}
\section{sec2}
\label{sec:sec2}
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}\\
\stepcounter{myCounter}\themyCounter/\getsectiontotal{myCounter}
\end{document}
```
| 6 | https://tex.stackexchange.com/users/4427 | 684157 | 317,394 |
https://tex.stackexchange.com/questions/666267 | 0 | I like to have custom-color hyperlinks with
```
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=NavyBlue,
filecolor=magenta,
urlcolor=cyan,
citecolor=MidnightBlue
}
```
and insert a multi-page pdf document with `\usepackage{pdfpages}`. It works fine (there's no error) when only one of the packages is used.
However, when I included both packages, I got an error that begins with:
```
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 \usepackage
{hyperref}
The package xcolor has already been loaded with options:
[]
There has now been an attempt to load it with options
[dvipsnames]
Adding the global options:
,dvipsnames
to your \documentclass declaration may fix this.
Try typing <return> to proceed.
```
I also have multiple other packages, and simply adding `\documentclass[xcolor={dvipsnames}]{article}` doesn't fix it, but rather causes even more errors.
What causes this? Is there a different package or approach to insert a PDF document that is compatible with `hyperref` with `xcolor=dvipsnames`?
| https://tex.stackexchange.com/users/209773 | Are hyperref (with dvipsnames) and pdfpages not compatible? | false | The error your report is unrelated to hyperref. Surely you have a situtation like this
```
\usepackage{pdfpages}
\usepackage[dvipsnames]{xcolor}
```
To fix this do
```
\usepackage[dvipsnames]{xcolor}
\usepackage{pdfpages}
```
As other packages may load `xcolor` move the `\usepackage[dvipsnames]{xcolor}` earliest possible in preamble.
| 1 | https://tex.stackexchange.com/users/293669 | 684165 | 317,398 |
https://tex.stackexchange.com/questions/683981 | 0 | My document includes several PDF files generated by PlantUML. These files are stored in different directories underneath the document directory. So far, I've created these files with a combination of shell scripts and Makefiles. Today I learned about latexmk's custom dependencies.
I've added the following to my `.latexmkrc`:
```
add_cus_dep('puml', 'pdf', 0, 'puml2pdf');
sub puml2pdf { system( "plantuml -Djava.awt.headless=true -charset UTF-8 -tpdf \"$_[0].puml\" \"$_[0].pdf\" "); }
```
Now latexmk should detect a missing PDF file on the first run and the custom dependency should kick in to run `plantuml` as defined. Unfortunately, it doesn't. `lualatex` fails with an error and the custom dependency is never written to the `.fls` file:
```
LaTeX Warning: File `signservice_isignaturecore.pdf' not found on input line 529.
! Package luatex.def Error: File `signservice_isignaturecore.pdf' not found: using draft setting.
See the luatex.def package documentation for explanation.
Type H <return> for immediate help.
...
l.529 ...sinf.opmon.ieventsenderforoperationmonitor}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Output loop---200 consecutive dead cycles.
\AP@clearpage ...e \m@ne {}\vbox {}\penalty -\@Mi
l.529 ...sinf.opmon.ieventsenderforoperationmonitor}
I've concluded that your \output is awry; it never does a
\shipout, so I'm shipping \box\outputbox out myself. Next time
increase \maxdeadcycles if you want me to be more patient!
```
The error probably results from the following construction in which I rotate the page and try to make sure that the float isn't placed too far way from text where it is referenced:
```
\afterpage{%
\clearpage% Flush earlier floats (otherwise order might not be correct)
\begin{landscape}% Landscape page
\centering % Center table
{
\begin{figure}[htbp]
\hypertarget{fig:mod.signservice.core.isignaturecore}{%
\includegraphics[width=0.75\columnwidth,keepaspectratio]{signservice_isignaturecore.pdf}
\caption{Klassenhierarchie für \java{IsignatureCore}}
\label{fig:mod.signservice.core.isignaturecore}}
\end{figure}
}
\end{landscape}
\clearpage% Flush page
}
```
Now two questions arise:
* How can I convince `latexmk` to write the missing dependency to the `.fls` file despite the error?
* Is it correct that in order to make `latexmk` recognize the dependency in the first place, it must be started in `-silent` mode, otherwise `lualatex` halts and requires user input. In this case, latexmk can't be used in a CI/CD environment without user interaction.
| https://tex.stackexchange.com/users/151898 | latexmk and custom dependencies | false | It turned out that latexmk wasn't picking up the dependencies properly to run the custom rule. This happened because the `\includegraphics` commands didn't include the whole path to the PDF file. This was unnecessary before, because of the `\graphicspath` macro at the top of the file. Of course, latexmk didn't know about the `\graphicspath`, so it wasn't able to calculate the correct location of the source file for the PDF. Once I've changed that, the correct source files were found and latexmk could call the custom dependency.
| 0 | https://tex.stackexchange.com/users/151898 | 684167 | 317,400 |
https://tex.stackexchange.com/questions/475826 | 7 | I am quite new to LaTeX and do not know how to present a simple Python code like this in LaTeX in a professional way. Having your solutions and examples will help me a lot to learn and progress.
```
if transactions: Transaction.create_transactions() # if transactions = "true"
node.generate_emptyState() # empty state for all nodes
S.initial_events() # initiate initial events to start with
while not queue.isEmpty() and clock <= targetTime:
next_e = queue.get_next_event()
clock = next_e.time # move clock to the time of the event
Event.execute_event(next_e)
Queue.remove_event(next_e)
print results
```
| https://tex.stackexchange.com/users/128886 | How to present a Python code snippet efficiently in LaTeX? | false | You can use `{Piton}` of the extension `piton`. It uses the Lua libraray LPEG of LuaLaTeX (and require LuaLaTeX). No exterior program is required.
```
\documentclass{article}
\usepackage{xcolor}
\usepackage{piton}
\begin{document}
\begin{Piton}
from math import pi
def arctan(x,n=10):
"""Compute the mathematical value of arctan(x)
n is the number of terms in the sum
"""
if x < 0:
return -arctan(-x) # recursive call
elif x > 1:
return pi/2 - arctan(1/x)
#> (we have used that $\arctan(x)+\arctan(1/x)=\frac{\pi}{2}$ for $x>0$)
else:
s = 0
for k in range(n):
s += (-1)**k/(2*k+1)*x**(2*k+1)
return s
\end{Piton}
\end{document}
```
It's possible to use it in conjunction with `tcolorbox`.
```
\documentclass{article}
\usepackage{xcolor}
\usepackage{piton}
\usepackage{tcolorbox}
\NewPitonEnvironment{Python}{}
{\begin{tcolorbox}}
{\end{tcolorbox}}
\begin{document}
\begin{Python}
from math import pi
def arctan(x,n=10):
"""Compute the mathematical value of arctan(x)
n is the number of terms in the sum
"""
if x < 0:
return -arctan(-x) # recursive call
elif x > 1:
return pi/2 - arctan(1/x)
#> (we have used that $\arctan(x)+\arctan(1/x)=\frac{\pi}{2}$ for $x>0$)
else:
s = 0
for k in range(n):
s += (-1)**k/(2*k+1)*x**(2*k+1)
return s
\end{Python}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/163000 | 684170 | 317,401 |
https://tex.stackexchange.com/questions/578388 | 2 | Usually I include audio files via FlashPlayer in PDF documents with the Media9 package:
```
\usepackage{media9}
\addmediapath{./folder}
\includemedia[
transparent,
passcontext,
addresource=audio.mp3,
flashvars={source=audio.mp3},
]{\color{gray}{\tiny\faCircle}}{APlayer.swf}
```
Since Acrobat stopped supporting FlashPlayer. this is no longer possible. However, including audios is still possible:
<https://helpx.adobe.com/acrobat/using/rich-media.html>
Can somebody help me on how to go about including the audios? What parts of my code do I need to change?
| https://tex.stackexchange.com/users/188396 | Include audio files in PDF after the end of Flash | false | The needed players are included in the package repository at Github:
<https://gitlab.com/agrahn/media9>
I've just tested it myself. I downloaded Aplayer.swf, put it in the same folder as my latex document, and used similar code to what you have above. Everything worked!
| 0 | https://tex.stackexchange.com/users/63976 | 684184 | 317,405 |
https://tex.stackexchange.com/questions/509254 | 5 | According to [the Springer's guidelines](ftp://ftp.springernature.com/cs-proceeding/svproc/guidelines/Springer_Guidelines_for_Authors_of_Proceedings_CS.pdf), I am requred to use llncs documentclass (as in [the template](ftp://ftp.springernature.com/cs-proceeding/llncs/llncs2e.zip)) and to indicate the corresponding author.
Unfortunately neither the guidelines, the template nor [this instruction](http://cs.brown.edu/about/system/managed/latex/doc/llncs.pdf) covers how may I do it in the llncs documentclass.
Of course I can provide e-mail with my affiliation, but there are other authors from my institute. Also [I may claim that there is a *Corresponding author: foo@bar.com institute*](https://tex.stackexchange.com/a/379841/123888) and (despite of an evident violation of the semantics) I would go that way the affiliations were not automatically enumerated. I believe the corresponding author should be indicated more clearly than the biggest superscript number.
[The `\thanks` macro](https://tex.stackexchange.com/a/310209/123888) also is not what I expect as it results in a footnote, not a part of the title.
| https://tex.stackexchange.com/users/123888 | Indicate corresponding author in llncs tempate | false | One option that I like very much and want to add to the pool of answers is using package `fontawesome5`. This solution compiles also with [Tectonic](https://tectonic-typesetting.github.io/en-US/)
```
\usepackage{fontawesome5}
\begin{document}
\title{Runtime load-shifting of distributed controllers across networked devices}
\author{Angelo Filaseta\inst{1}\orcidID{0009-0004-6797-6814} \and
Danilo Pianini\inst{1}\orcidID{0000-0002-8392-5409}\faIcon{envelope}}
\institute{
Alma Mater Studiorum---Università di Bologna,
47522 Cesena (FC), Italy
\email{
angelo.filaseta@studio.unibo.it, \faIcon{envelope} danilo.pianini@unibo.it
}
}
```
result:
| 1 | https://tex.stackexchange.com/users/65790 | 684186 | 317,406 |
https://tex.stackexchange.com/questions/684181 | 0 | I'm doing my thesis in `LaTeX`, and have multiple chapters, separated in different .tex files and included in the main.tex using `\include{}`, which worked normally, and I can build it, without returning to the main.tex file.
But after trying to start another chapter and build it directly, it shows the following error:
>
> `! LaTeX Error: Missing \begin{document}.`
>
>
>
Here is my preamble:
```
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel} % pone el idioma en español
\setcounter{tocdepth}{3} % pone en TOC hasta la subsubsección
\setcounter{secnumdepth}{3} % enumera hasta la subsubsección
\usepackage{lipsum} % dummy text
\usepackage{graphicx}
\usepackage{geometry} % margenes del documento
\geometry{letterpaper, top = {2,5cm}, bottom = {2,5cm}, inner = {2,5cm},
outer = {2,5cm}, head = {1,1cm}, foot = {1,1cm}, bindingoffset = {1,0cm}}
% Si se va a usar dos paginas por hoja, agregar la opción twoside
\usepackage{helvet} % Arial
\renewcommand{\familydefault}{\sfdefault} % Arial
\usepackage{titlesec} % cambiar modo de ver capitulos y secciones
\titleformat{\chapter}[display]
{\large\bfseries\centering}{\MakeUppercase\chaptertitlename\ \thechapter}{1em}{\MakeUppercase}{} % Cambios en Capitulo
\titleformat{\section}{\large\bfseries}{\thesection.}{1em}{\MakeUppercase}
\titleformat{\subsection}{\normalsize\bfseries}{\thesubsection.}{1em}{\MakeUppercase} % Cambios en SubSección
\titleformat{\subsubsection}{\normalsize\bfseries}{\thesubsubsection.}{1em}{\MakeUppercase} % Cambios en SubSubSección
\titlespacing*{\chapter}{0pt}{-2.5em}{3em} % Cambia el espaciamiento del capitulo de 50pt a lo pedido
\titlespacing*{\section}{0pt}{3em}{2em} % Cambia el espaciamiento de la sección a 3 espacios en blanco antes y 2 despues.
\usepackage{enumitem}
%\setlist[enumerate]{label=\thesection.\arabic*., leftmargin=*}
%\renewcommand*{\theenumi}{\thechapter.\arabic{enumi}} % numero de capitulo en listas
%\renewcommand*{\theenumii}{\theenumi.\arabic{enumi}} % añade lo anterior a sublistas
\usepackage{titletoc}
\titlecontents{chapter}[0em]
{\vspace{0em}}
{\normalfont\normalsize\contentslabel[\thecontentslabel.]{2em}\uppercase}
{\hspace*{-2em}\uppercase}
{\titlerule*[.75em]{.}\contentspage}
\titlecontents{section}[2em]
{\vspace{0em}}
{\normalfont\normalsize\contentslabel[\thecontentslabel.]{2em}\uppercase}
{\hspace*{-2em}\uppercase}
{\titlerule*[.75em]{.}\contentspage}
\titlecontents{subsection}[5em]
{\vspace{0em}}
{\normalfont\normalsize\contentslabel[\thecontentslabel.]{2.9em}\uppercase}
{\hspace*{-2em}\uppercase}
{\titlerule*[.75em]{.}\contentspage}
\titlecontents{subsubsection}[9em]
{\vspace{0em}}
{\normalfont\normalsize\contentslabel[\thecontentslabel.]{3.8em}\uppercase}
{\hspace*{-2em}\uppercase}
{\titlerule*[.75em]{.}\contentspage}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.5} % interlineado de 1.5
\usepackage[skip=6pt, indent=1cm, tocskip]{parskip} % configurar espacio entre parrafos y sangría izquierda. tocskip genera el salto entre parrafos en el indice
% paquetes necesarios para citar
\usepackage{csquotes}
\usepackage[style=apa, backend=biber, sortcites, url=true]{biblatex}
\addbibresource{bibliografia.bib}
\usepackage{etoolbox}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{} % necesario para poner encabezado en paginas de capítulos
% paquete para encabezado y pie de pagina
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{mystyle}{
\fancyfoot{}
\renewcommand{\thepage}{\ifnum\value{page}<10 0\fi\arabic{page}}
}
\pagestyle{mystyle} % Aplicar el estilo de numeración de página personalizado
\usepackage[labelfont=bf]{caption} %% Formato de pies de foto
\usepackage[]{hyperref}
% - - - - - COMANDOS - - - - -
\newenvironment{itemizecita}{%
\begin{itemize}
\setlength{\leftskip}{1.27cm}
}{%
\end{itemize}
}
\long\def\citalarga#1{%
\medskip
\begingroup
\parindent 0pt
\leftskip=1.27cm
#1
\par
\endgroup
\medskip
}
\long\def\citalargacontinuacion#1{\medskip
\begingroup
\parindent 1.27cm
\leftskip=1.27cm
#1 \par \medskip
\endgroup
}
\long\def\resej#1{\medskip
\begingroup
\parindent 0pt
\leftskip=1.5em
#1 \par \medskip
\endgroup
}
% - - - - - PORTADA - - - - -
\title{\textbf{\MakeUppercase{text}}}
\author{text}
\date{}
\begin{document}
\maketitle
\fancyhead{}
\fancyfoot{}
\fancyhead[L]{}
\fancyhead[R]{}
\fancyfoot[R]{\thepage}
\fancyheadoffset[lh]{2cm}
%% - - - - - RESUMEN EJECUTIVO - - - - -
%
\include{1-resumen-ejecutivo.tex} % works
%
\tableofcontents
% - - - - - INTRODUCCIÓN - - - - -
\clearpage % para que el siguiente comando empiece en una página nueva
\pagenumbering{arabic} % numeración en números arábigos
\include{2-introduccion.tex} % works
% - - - - - CAPÍTULO 1 - - - - -
\include{3-capitulo-1.tex} % works
% - - - - - CAPÍTULO 2 - - - - -
\include{4-capitulo-2.tex} % doesn't work
% - - - - - CAPÍTULO 3 - - - - -
\include{5-capitulo-3.tex}% doesn't work
% - - - - - BIBLIOGRAFÍA - - - - -
\printbibliography
\end{document}
```
If I directly build the main.tex file, it shows the included chapters. Directly compiling until chapter-1.text works, but when trying to build 4-chapter-2.tex or 5-capitulo-3.tex it shows error.
Here are the log and file generated by the chapter that can't get build directly.
.log:
```
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Arch Linux) (preloaded format=pdflatex 2023.3.10) 28 APR 2023 09:49
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**4-capitulo-2.tex
(./4-capitulo-2.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-04-10>
! Undefined control sequence.
l.1 \chapter
{aaa}
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 \chapter{a
aa}
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 a in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no a in font nullfont!
Overfull \hbox (20.0pt too wide) in paragraph at lines 1--2
[]
[]
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3 a
sdkaskdjaskd
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 a in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no k in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no k in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no j in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no k in font nullfont!
Missing character: There is no d in font nullfont!
Overfull \hbox (20.0pt too wide) in paragraph at lines 3--4
[]
[]
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.5 a
dasdasd
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 a in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no d in font nullfont!
)
! Emergency stop.
<*> 4-capitulo-2.tex
*** (job aborted, no legal \end found)
Here is how much of TeX's memory you used:
17 strings out of 478238
522 string characters out of 5850456
289994 words of memory out of 5000000
18355 multiletter control sequences out of 15000+600000
469259 words of font info for 28 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
13i,0n,12p,62b,18s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
```
.bgl:
```
[0] Config.pm:307> INFO - This is Biber 2.19
[0] Config.pm:310> INFO - Logfile is '/home/jose-tomas/.cache/texstudio/archivos-temporales/4-capitulo-2.blg'
[76] biber:340> INFO - === vie abr 28, 2023, 09:49:56
[101] Utils.pm:410> ERROR - Cannot find '4-capitulo-2.bcf'!
[101] Biber.pm:136> INFO - ERRORS: 1
```
.aux:
```
\relax
\providecommand\hyper@newdestlabel[2]{}
\@writefile{toc}{\contentsline {chapter}{\numberline {3}aaa}{21}{chapter.3}\protected@file@percent }
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@setckpt{4-capitulo-2}{
\setcounter{page}{22}
\setcounter{equation}{0}
\setcounter{enumi}{1}
\setcounter{enumii}{0}
\setcounter{enumiii}{0}
\setcounter{enumiv}{0}
\setcounter{footnote}{0}
\setcounter{mpfootnote}{0}
\setcounter{part}{0}
\setcounter{chapter}{3}
\setcounter{section}{0}
\setcounter{subsection}{0}
\setcounter{subsubsection}{0}
\setcounter{paragraph}{0}
\setcounter{subparagraph}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{tabx@nest}{0}
\setcounter{listtotal}{0}
\setcounter{listcount}{0}
\setcounter{liststart}{0}
\setcounter{liststop}{0}
\setcounter{citecount}{0}
\setcounter{citetotal}{0}
\setcounter{multicitecount}{0}
\setcounter{multicitetotal}{0}
\setcounter{instcount}{34}
\setcounter{maxnames}{2}
\setcounter{minnames}{1}
\setcounter{maxitems}{999}
\setcounter{minitems}{1}
\setcounter{citecounter}{0}
\setcounter{maxcitecounter}{0}
\setcounter{savedcitecounter}{0}
\setcounter{uniquelist}{0}
\setcounter{uniquename}{0}
\setcounter{refsection}{0}
\setcounter{refsegment}{0}
\setcounter{maxextratitle}{0}
\setcounter{maxextratitleyear}{0}
\setcounter{maxextraname}{2}
\setcounter{maxextradate}{0}
\setcounter{maxextraalpha}{0}
\setcounter{abbrvpenalty}{50}
\setcounter{highnamepenalty}{50}
\setcounter{lownamepenalty}{25}
\setcounter{maxparens}{3}
\setcounter{parenlevel}{0}
\setcounter{blx@maxsection}{0}
\setcounter{mincomprange}{10}
\setcounter{maxcomprange}{100000}
\setcounter{mincompwidth}{1}
\setcounter{afterword}{0}
\setcounter{savedafterword}{0}
\setcounter{annotator}{0}
\setcounter{savedannotator}{0}
\setcounter{author}{0}
\setcounter{savedauthor}{0}
\setcounter{bookauthor}{0}
\setcounter{savedbookauthor}{0}
\setcounter{commentator}{0}
\setcounter{savedcommentator}{0}
\setcounter{editor}{0}
\setcounter{savededitor}{0}
\setcounter{editora}{0}
\setcounter{savededitora}{0}
\setcounter{editorb}{0}
\setcounter{savededitorb}{0}
\setcounter{editorc}{0}
\setcounter{savededitorc}{0}
\setcounter{foreword}{0}
\setcounter{savedforeword}{0}
\setcounter{holder}{0}
\setcounter{savedholder}{0}
\setcounter{introduction}{0}
\setcounter{savedintroduction}{0}
\setcounter{namea}{0}
\setcounter{savednamea}{0}
\setcounter{nameb}{0}
\setcounter{savednameb}{0}
\setcounter{namec}{0}
\setcounter{savednamec}{0}
\setcounter{translator}{0}
\setcounter{savedtranslator}{0}
\setcounter{shortauthor}{0}
\setcounter{savedshortauthor}{0}
\setcounter{shorteditor}{0}
\setcounter{savedshorteditor}{0}
\setcounter{narrator}{0}
\setcounter{savednarrator}{0}
\setcounter{execproducer}{0}
\setcounter{savedexecproducer}{0}
\setcounter{execdirector}{0}
\setcounter{savedexecdirector}{0}
\setcounter{with}{0}
\setcounter{savedwith}{0}
\setcounter{labelname}{0}
\setcounter{savedlabelname}{0}
\setcounter{institution}{0}
\setcounter{savedinstitution}{0}
\setcounter{lista}{0}
\setcounter{savedlista}{0}
\setcounter{listb}{0}
\setcounter{savedlistb}{0}
\setcounter{listc}{0}
\setcounter{savedlistc}{0}
\setcounter{listd}{0}
\setcounter{savedlistd}{0}
\setcounter{liste}{0}
\setcounter{savedliste}{0}
\setcounter{listf}{0}
\setcounter{savedlistf}{0}
\setcounter{location}{0}
\setcounter{savedlocation}{0}
\setcounter{organization}{0}
\setcounter{savedorganization}{0}
\setcounter{origlocation}{0}
\setcounter{savedoriglocation}{0}
\setcounter{origpublisher}{0}
\setcounter{savedorigpublisher}{0}
\setcounter{publisher}{0}
\setcounter{savedpublisher}{0}
\setcounter{language}{0}
\setcounter{savedlanguage}{0}
\setcounter{origlanguage}{0}
\setcounter{savedoriglanguage}{0}
\setcounter{citation}{0}
\setcounter{savedcitation}{0}
\setcounter{pageref}{0}
\setcounter{savedpageref}{0}
\setcounter{textcitecount}{1}
\setcounter{textcitetotal}{1}
\setcounter{textcitemaxnames}{0}
\setcounter{biburlbigbreakpenalty}{100}
\setcounter{biburlbreakpenalty}{200}
\setcounter{biburlnumpenalty}{0}
\setcounter{biburlucpenalty}{0}
\setcounter{biburllcpenalty}{0}
\setcounter{smartand}{0}
\setcounter{bbx:relatedcount}{0}
\setcounter{bbx:relatedtotal}{0}
\setcounter{caption@flags}{2}
\setcounter{continuedfloat}{0}
\setcounter{Item}{23}
\setcounter{Hfootnote}{0}
\setcounter{bookmark@seq@number}{19}
\setcounter{section@level}{0}
}
```
| https://tex.stackexchange.com/users/292732 | Can't build an included file, using texstudio | true | I don't know why, but after closing and opening again TeXstudio, now I can build the chapter without returning to the main.tex file.
I think it was probably some linking problem that got solved, by reloading the program.
| 0 | https://tex.stackexchange.com/users/292732 | 684187 | 317,407 |
https://tex.stackexchange.com/questions/684175 | 0 | I am writing a text that contains three parts (henceforth, *main body*) as well as two additional chapters: one before and one after (FC) the main body.
I want to separate FC from Part 3 with a completely blank page (or two) that do(es) not contain numbering and headers (although, I don't mind if the page is accounted for in the overall numbering) but **without the `openany` option** The problem is that the following does not really work as intended (the relevant part in **boldface**).
```
\documentclass[11pt,a4paper]{book}
\makeatletter
\newcommand{\ChapterOutsidePart}{%
\def\toclevel@chapter{-1}\def\toclevel@section{0}\def\toclevel@subsection{1}}
\newcommand{\ChapterInsidePart}{%
\def\toclevel@chapter{0}\def\toclevel@section{1}\def\toclevel@subsection{2}}
\makeatother
\title{aaa}
\author{aaa}
\begin{document}
\pagenumbering{alph}
\maketitle
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\textit{This page was intentionally left blank.}
\end{center}
\vspace*{\fill}
\newpage
\pagenumbering{roman}
\section*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
\newpage
\newpage
\section*{0}
\addcontentsline{toc}{chapter}{0}
\tableofcontents
\addcontentsline{toc}{chapter}{Contents}
\newpage
\pagenumbering{arabic}
\ChapterOutsidePart
\chapter{1\label{ch:introduction}}
\part{Part 1}
\ChapterInsidePart
\chapter{Chapter 2}
\chapter{Chapter 3}
\part{Part 2}
\chapter{Chapter 4}
\chapter{Chapter 5}
\part{Part3\label{part2}}
\chapter{Chapter 6}
\chapter{Chapter 7}
**\newpage
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\textsc{End of Part III.}
\end{center}
\vspace*{\fill}**
\addtocontents{toc}{\protect\addvspace{1.5em}}
\ChapterOutsidePart
\chapter{Chapter 8}
\end{document}
```
Namely, if the text of the preceding chapter ends at the verso, the blank page is inserted as recto. This creates an additional (verso) page (with a header and number, of course) after which the new chapter begins.
The twofold repetition of the code above does what is intended but seems a bit inelegant to me.
The question is whether it is possible to do something so that the end result is as follows.
* If the chapter preceding FC ends at the verso, **two blank pages** are inserted.
* If the chapter preceding FC ends at the recto, **one blank page** is inserted.
Or should I go with the simpler solution?
| https://tex.stackexchange.com/users/295924 | Inserting empty verso pages in ‘book’ | true | Please create a tag as:
```
\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
```
Whereever, you want an empty page, you should use `\clearemptydoublepage` instead of `\clearpage`, `\newpage`, or `\pagebreak`
| 2 | https://tex.stackexchange.com/users/121024 | 684188 | 317,408 |
https://tex.stackexchange.com/questions/684192 | 4 | I intent to build items exactly as the ones in the following code but filled with a different colour in the circle and in the font on each appearance (e.g. the first one red with "1" in white and the second green with "2" in brown). How can I do it? Thanks.
```
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article> % only for the article version
{
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>
{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\usepackage{tikz}
\setbeamercovered{dynamic}
\setbeamertemplate{items}[circle]
\usetikzlibrary{tikzmark}
\newcommand{\itemnum}[1]{%
\setcounter{enumi}{#1}\usebeamertemplate{enumerate item}%
}
\begin{document}
\begin{frame}
These are my items~{\itemnum{1}} and~{\itemnum{2}} ...
\end{frame}
\end{document}
```
| https://tex.stackexchange.com/users/295544 | Building circled items in different colours | true | Since the the template `enumerate item` uses the color settings of `item projected` you can use it to adjust the colors of both the circle (`bg`) as well as the text (`fg`).
I've added `\unskip` and `\unbreak` to adjust the horizontal spacing (the space before it is too much in my opinion) and to suppress a linebreak.
Code
----
```
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article>{ % only for the article version
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\setbeamercovered{dynamic}
\setbeamertemplate{items}[circle]
\newcommand{\itemnum}[2][]{{% extra {} to keep changes local
\setbeamercolor{item projected}{#1}%
\setcounter{enumi}{#2}%
\unskip\nobreak % no linebreak and no space before it
\usebeamertemplate{enumerate item}%
}}
\begin{document}
\begin{frame}
These are my items \itemnum[bg=red, fg=white]{1}
and \itemnum[fg=brown, bg=green]{2} \dots
\end{frame}
\end{document}
```
Output
------
| 5 | https://tex.stackexchange.com/users/16595 | 684193 | 317,409 |
https://tex.stackexchange.com/questions/684173 | 0 | I want to create schematics using circuititkz, and I can't find a way to do this:
I need to use european style symbols, but when drawing voltage sources, I want to display both the arrow AND the + and - symbols next to the source ~~(like there are in the american voltage source symbols)~~ to mark polarity.
This is how I have it set up so far, it looks exactly how I need it to look except for the polarity signs.
```
\usepackage[siunitx, european, straight voltages]{circuitikz}
...
\begin{circuitikz}
\draw (0,0) to[V=3.0 V] (0,2)
...
\end{circuitikz}
```
Unfortunately, the "Sources Customizations" chapter in the circuitikz manual doesn't really provide any answer to this, so I hope someone here can help me. Thanks!
| https://tex.stackexchange.com/users/295923 | Adding + and - symbols to Voltage Source | false | You can always add text nodes outside the components, just name them and use the anchors. Note that east and west refer to the sides of the component as if it were draw left to right, while the text node offsets are normal.
```
\documentclass{standalone}
\usepackage[siunitx, european, straight voltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[V=3.0 V, n=V1] (0,2);
\path (V1.ne) node[above] {$+$}
(V1.nw) node[below] {$-$};
\end{circuitikz}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/34505 | 684203 | 317,412 |
https://tex.stackexchange.com/questions/684198 | 0 | I would like to use this [Turabian-formatted Thesis/Dissertation template](https://www.overleaf.com/latex/templates/turabian-formatted-thesis-slash-dissertation/qkyvdqrsgmnf) hosted on Overleaf, but it seems that the center is off to the right. I wonder how to correct this at once including all the elements (text, page number, figure, table, etc)?
| https://tex.stackexchange.com/users/295945 | How to change the center of a template | true | The class reserves 0.5in (36pt) as binding offset.
If you don't need such space add `\setlength\oddsidemargin{0in}` after `\documentclass{turabian-thesis}` (or other suitable value)
You can visualize the layout by adding the package `layout` (`\usepackage{layout}`) and the `\layout` command after `\begin{document)`.
Original layout
Using `\setlength\oddsidemargin{0in}`. This will increase the available text width by 36pt.
If you want to keep the original text (433pt) width, add `\addtolength{\textwidth}{-0.5in}` to compensate.
| 1 | https://tex.stackexchange.com/users/161015 | 684204 | 317,413 |
https://tex.stackexchange.com/questions/684192 | 4 | I intent to build items exactly as the ones in the following code but filled with a different colour in the circle and in the font on each appearance (e.g. the first one red with "1" in white and the second green with "2" in brown). How can I do it? Thanks.
```
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article> % only for the article version
{
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>
{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\usepackage{tikz}
\setbeamercovered{dynamic}
\setbeamertemplate{items}[circle]
\usetikzlibrary{tikzmark}
\newcommand{\itemnum}[1]{%
\setcounter{enumi}{#1}\usebeamertemplate{enumerate item}%
}
\begin{document}
\begin{frame}
These are my items~{\itemnum{1}} and~{\itemnum{2}} ...
\end{frame}
\end{document}
```
| https://tex.stackexchange.com/users/295544 | Building circled items in different colours | false | You already got the perfect answer to your question, but just as an alternative: here a solution using the `circledsteps` package
```
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article> % only for the article version
{
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>
{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\usepackage{tikz}
\setbeamercovered{dynamic}
\usepackage{circledsteps}
\setbeamertemplate{items}[circle]
\usetikzlibrary{tikzmark}
\newcommand{\itemnum}[1]{%
\setcounter{enumi}{#1}\usebeamertemplate{enumerate item}%
}
\begin{document}
\begin{frame}
These are my items~{\footnotesize\Circled[inner color=white,fill color=red,outer color=red]{1}} and~{\footnotesize\Circled[inner color=lightgray,fill color=green,outer color=green]{2}} ...
\end{frame}
\end{document}
```
| 3 | https://tex.stackexchange.com/users/36296 | 684206 | 317,414 |
https://tex.stackexchange.com/questions/684205 | 3 | I am currently working on paper with a template from AIP. They uses Revtex4-2 as document class with extra (something on the square bracket, I don't know the term). There are several consecutive papers that I need to cite. The [guide](https://ctan.math.illinois.edu/macros/latex/contrib/revtex/auguide/auguide4-2.pdf) claims that the `\cite` command will automatically collapse the citation number, e.g. `[1,2,3,5] -> [1-3,5]` but that does not work for me. Here is my MWE:
```
\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
cp, % Conference Proceedings
amsmath,amssymb,%nobibnotes,
% preprint,%
reprint,%
%author-year,%
%author-numerical,%
]{revtex4-2}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%% Loads a Times-like font. You can also load
%% {newtxtext,newtxtmath}, but not {times},
%% {txfonts} nor {mathtpm} as these packages
%% are obsolete and have been known to cause problems.
\usepackage{mathptmx}
\begin{document}
\title{Title}% Force line breaks with \\
\author{Author's Name} % Write as First name Surname
\email[Corresponding author: ]{first.author@insitution.edu}
\affiliation{
Replace this text with an author's affiliation
(use complete addresses, including country name or code).% Force line breaks with \\ if necessary
}
\begin{abstract}
This is abstract
\end{abstract}
\maketitle
\section{INTRODUCTION}
In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}.
\\
In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, metaxas2007creep}.
\section{Conclusion}
In this section we welcome you to include a summary of the end results of your research.
\begin{acknowledgments}
This is something to acknowledge.
\end{acknowledgments}
\nocite{*}
\bibliography{aipsamp}% Produces the bibliography via BibTeX.
\end{document}
%
% ****** End of file aipsamp.tex ******
```
And this is my aipsamp.bib
```
@article{zhu2012study,
title={The study of perpendicular magnetic anisotropy in CoFeB sandwiched by MgO and tantalum layers using polarized neutron reflectometry},
author={Zhu, T and Yang, Y and Yu, RC and Ambaye, H and Lauter, V and Xiao, JQ},
journal={Applied Physics Letters},
volume={100},
number={20},
pages={202406},
year={2012},
publisher={American Institute of Physics}
}
@article{handoko2015scanning,
title={Scanning transmission X-ray microscopy study of the stretched magnetic-domain structure of Co/Pt multilayers under an in-plane field},
author={Handoko, Djati and Quach, Duy-Truong and Lee, Sang-Hyuk and Shim, Je-Ho and Kim, Dong-Hyun and Lee, Kyung-Min and Jeong, Jong-Ryul and Kim, Namdong and Shin, Hyun-Joon},
journal={Journal of the Korean Physical Society},
volume={66},
pages={1732--1735},
year={2015},
publisher={Springer}
}
@article{zhang2017spin,
title={Spin-orbit-torque-induced magnetic domain wall motion in Ta/CoFe nanowires with sloped perpendicular magnetic anisotropy},
author={Zhang, Yue and Luo, Shijiang and Yang, Xiaofei and Yang, Chang},
journal={Scientific reports},
volume={7},
number={1},
pages={2047},
year={2017},
publisher={Nature Publishing Group UK London}
}
@article{szambolics2009domain,
title={Domain wall motion in ferromagnetic systems with perpendicular magnetization},
author={Szambolics, Helga and Toussaint, J-Ch and Marty, Alain and Miron, Ioan Mihai and Buda-Prejbeanu, LD},
journal={Journal of magnetism and magnetic materials},
volume={321},
number={13},
pages={1912--1918},
year={2009},
publisher={Elsevier}
}
@article{metaxas2007creep,
title={Creep and flow regimes of magnetic domain-wall motion in ultrathin Pt/Co/Pt films with perpendicular anisotropy},
author={Metaxas, PJ and Jamet, JP and Mougin, A and Cormier, M and Ferr{\'e}, J and Baltz, Vincent and Rodmacq, B and Dieny, B and Stamps, RL},
journal={Physical review letters},
volume={99},
number={21},
pages={217208},
year={2007},
publisher={APS}
}
```
I thought the references need to be cited first so it would work after the next citation. Hence the extra copy of the sentence below. But still, nothing happened. Can someone help me? Sorry if my english is messy.
Disclaimer: I am using Overleaf. Only two files exist in the project, the main `.tex` file and `aipsamp.bib` file.
| https://tex.stackexchange.com/users/292410 | RevTEX 4-2 citation for consecutive paper won't compress | true | The compression of citations does generally work in REVTeX, and will for non-AIP styles, as well as the root `aip` substyle, but you are using the `cp` option with the AIP substyles which stops compression of citations from `[1,2,3,5]` to `[1-3,5]`.
As the [Author’s Guide to AIP Substyles for REVTeX 4.2](http://mirrors.ctan.org/macros/latex/contrib/revtex/aip/aipguide4-2.pdf) indicates the correct class options for specifying an AIP journal style would indeed be `aip,cp`, the natural inference is that the use of uncompressed citations is the correct style for AIP Conference Proceedings.
It is somewhat unfortunate that no mention of this AIP Conference Proceedings-specific behaviour is made in the [Author’s Guide to AIP Substyles for REVTeX 4.2](http://mirrors.ctan.org/macros/latex/contrib/revtex/aip/aipguide4-2.pdf) (indeed no mention of the AIP class option `cp` is made at all), and if you think this is a bug it should be flagged (as specific to the AIP substyles) to the AIP.
Omitting the `cp` class option will give compressed citations but this clearly changes the appearance of the document, similarly omitting the `aip` class option appears to cause the `cp` class option to be ignored and produce a standard `aps`-style document.
Multiple references in a single bibliography entry (Sec VIII.5. of the REVTeX 4.2 Author's Guide) does work under `aip,cp` and so you can instead use `\cite{zhu2012study,*handoko2015scanning,*zhang2017spin, szambolics2009domain, metaxas2007creep}` to generate `[1,2,3]` where `1` is a single bibliography entry containing the three references `zhu2012study`, `handoko2015scanning` and `zhang2017spin`, which will make the subsequent block `[1,3]`.
The settings of the `cp` class option can be overriden to force compression of citations with
```
\makeatletter
\def\NAT@cmprs{\@ne}
\makeatother
```
| 5 | https://tex.stackexchange.com/users/106162 | 684215 | 317,418 |
https://tex.stackexchange.com/questions/684138 | 1 | In the template of Proceedings of the Royal Society A, I want to use the command "\Deltaup", however, compiling the file, I encounter the following error: "Undefined control sequence. $\Deltaup". I would like to know how can I resolve this problem. Thank you!
The template starts as follows:
\documentclass[]{rsos}%%%%where rsos is the template name
%%%% \*\*\* Do not adjust lengths that control margins, column widths, etc. \*\*\*
\usepackage{upgreek}
| https://tex.stackexchange.com/users/295889 | Undefined control sequence. $\Deltaup in the template of Proceedings of the Royal Society A (PRSA) | true | The PRSA document class (`rsproca_new.cls`) contains an option `Capsgreek` that, if set, specifies that all uppercase Greek will be italic. In the case of `\Delta`, this is set up through `\let\Delta\varDelta`, making it impossible to use `\Delta` in its original meaning.
`Capsgreek` is "executed" (set up) automatically, but not activated until `\AtBeginDocument` making it possible to preserve the original meaning of the capital Greek letters if they are caught before the transformation occurs, i.e., before `AtBeginDocument`.
You have suggested the name `\Deltaup` for the upright delta. Using this name, you can save the upright Delta for later use by adding this line *before* `\begin{document}`:
```
\let\Deltaup\Delta
```
The same mechanism can be used to "preserve" the other uppercase Greek letters that are normally defined, remembering that the Greek caps that have the same shape as Latin uppercase letters do not have defined TeX command names.
| 3 | https://tex.stackexchange.com/users/579 | 684217 | 317,420 |
https://tex.stackexchange.com/questions/684205 | 3 | I am currently working on paper with a template from AIP. They uses Revtex4-2 as document class with extra (something on the square bracket, I don't know the term). There are several consecutive papers that I need to cite. The [guide](https://ctan.math.illinois.edu/macros/latex/contrib/revtex/auguide/auguide4-2.pdf) claims that the `\cite` command will automatically collapse the citation number, e.g. `[1,2,3,5] -> [1-3,5]` but that does not work for me. Here is my MWE:
```
\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
cp, % Conference Proceedings
amsmath,amssymb,%nobibnotes,
% preprint,%
reprint,%
%author-year,%
%author-numerical,%
]{revtex4-2}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%% Loads a Times-like font. You can also load
%% {newtxtext,newtxtmath}, but not {times},
%% {txfonts} nor {mathtpm} as these packages
%% are obsolete and have been known to cause problems.
\usepackage{mathptmx}
\begin{document}
\title{Title}% Force line breaks with \\
\author{Author's Name} % Write as First name Surname
\email[Corresponding author: ]{first.author@insitution.edu}
\affiliation{
Replace this text with an author's affiliation
(use complete addresses, including country name or code).% Force line breaks with \\ if necessary
}
\begin{abstract}
This is abstract
\end{abstract}
\maketitle
\section{INTRODUCTION}
In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}.
\\
In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, metaxas2007creep}.
\section{Conclusion}
In this section we welcome you to include a summary of the end results of your research.
\begin{acknowledgments}
This is something to acknowledge.
\end{acknowledgments}
\nocite{*}
\bibliography{aipsamp}% Produces the bibliography via BibTeX.
\end{document}
%
% ****** End of file aipsamp.tex ******
```
And this is my aipsamp.bib
```
@article{zhu2012study,
title={The study of perpendicular magnetic anisotropy in CoFeB sandwiched by MgO and tantalum layers using polarized neutron reflectometry},
author={Zhu, T and Yang, Y and Yu, RC and Ambaye, H and Lauter, V and Xiao, JQ},
journal={Applied Physics Letters},
volume={100},
number={20},
pages={202406},
year={2012},
publisher={American Institute of Physics}
}
@article{handoko2015scanning,
title={Scanning transmission X-ray microscopy study of the stretched magnetic-domain structure of Co/Pt multilayers under an in-plane field},
author={Handoko, Djati and Quach, Duy-Truong and Lee, Sang-Hyuk and Shim, Je-Ho and Kim, Dong-Hyun and Lee, Kyung-Min and Jeong, Jong-Ryul and Kim, Namdong and Shin, Hyun-Joon},
journal={Journal of the Korean Physical Society},
volume={66},
pages={1732--1735},
year={2015},
publisher={Springer}
}
@article{zhang2017spin,
title={Spin-orbit-torque-induced magnetic domain wall motion in Ta/CoFe nanowires with sloped perpendicular magnetic anisotropy},
author={Zhang, Yue and Luo, Shijiang and Yang, Xiaofei and Yang, Chang},
journal={Scientific reports},
volume={7},
number={1},
pages={2047},
year={2017},
publisher={Nature Publishing Group UK London}
}
@article{szambolics2009domain,
title={Domain wall motion in ferromagnetic systems with perpendicular magnetization},
author={Szambolics, Helga and Toussaint, J-Ch and Marty, Alain and Miron, Ioan Mihai and Buda-Prejbeanu, LD},
journal={Journal of magnetism and magnetic materials},
volume={321},
number={13},
pages={1912--1918},
year={2009},
publisher={Elsevier}
}
@article{metaxas2007creep,
title={Creep and flow regimes of magnetic domain-wall motion in ultrathin Pt/Co/Pt films with perpendicular anisotropy},
author={Metaxas, PJ and Jamet, JP and Mougin, A and Cormier, M and Ferr{\'e}, J and Baltz, Vincent and Rodmacq, B and Dieny, B and Stamps, RL},
journal={Physical review letters},
volume={99},
number={21},
pages={217208},
year={2007},
publisher={APS}
}
```
I thought the references need to be cited first so it would work after the next citation. Hence the extra copy of the sentence below. But still, nothing happened. Can someone help me? Sorry if my english is messy.
Disclaimer: I am using Overleaf. Only two files exist in the project, the main `.tex` file and `aipsamp.bib` file.
| https://tex.stackexchange.com/users/292410 | RevTEX 4-2 citation for consecutive paper won't compress | false | I will write my hack here if someone need it. So i used `\vphantom`. I am sure you can find the detail about that command elsewhere and have a better explanation than i would. Basically, it will hide the text (including the text horizontal width), but the file still know its presence (Sorry for the lack of a better word).
I write
```
In the last couple of decades, the dynamics of magnetic. \vphantom{\cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}}
```
then i add `[1-5]` in the end of the sentence
```
In the last couple of decades, the dynamics of magnetic [1-5]. \vphantom{\cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}} Next sentence ...
```
Fortunately, the paper i am working on does not have so many compressable citation so i am fine doing this. If someone have a better hack, please let us know.
| 1 | https://tex.stackexchange.com/users/292410 | 684224 | 317,422 |
https://tex.stackexchange.com/questions/684202 | 0 | I cannot wrap my head around the existing examples like [this](https://tex.stackexchange.com/questions/20894/make-index-entries-refer-to-something-other-than-the-page-numbers?noredirect=1&lq=1).
I am using the `ekdosis` package, which depends on the `verse`, and ultimately `lineno` to generate line numbers for a long verse based document. Now I was helped out with the following command, but I cannot get the right result, which should read "rose, 1, 4, 8". I am getting "rose, 8" instead:
```
\documentclass{report}
\usepackage{imakeidx}
\usepackage{xpatch}
\usepackage{ekdosis}
\makeindex
\makeatletter
\newcommand{\lineindex}[1]{\linelabel{#1}\index{#1}}
\patchcmd{\@wrindex}{\thepage}{\getrefnumber{#2}}{}{}
\makeatother
\begin{document}
\begin{ekdosis}
\begin{ekdverse}
The rose is a rose,\lineindex{rose} \\*
And was always a rose. \\*
But the theory now goes \\*
That the apple's a rose,\lineindex{rose} \\*
And the pear is, and so's \\*
The plum, I suppose. \\*
The dear only knows \\*
What will next prove a rose.\lineindex{rose} \\*
You, of course, are a rose - \\*
But were always a rose.\\*
Robert Frost\\*
\end{ekdverse}
\end{ekdosis}
\printindex
\end{document}
```
| https://tex.stackexchange.com/users/248855 | Cannot make index referring to line numbers list more than one instance | true | If `ekdosis` is loaded with `[poetry=verse]`, like so: `\usepackage[poetry=verse]{ekdosis}`, this should work:
```
\documentclass{report}
\usepackage{imakeidx}
\usepackage{xpatch}
\usepackage[poetry=verse]{ekdosis}
\makeindex
\makeatletter
\patchcmd{\@wrindex}{\thepage}{\thepoemline}{}{}
\makeatother
\begin{document}
\begin{ekdosis}
\begin{ekdverse}
The rose is a rose,\index{rose} \\*
And was always a rose. \\*
But the theory now goes \\*
That the apple's a rose,\index{rose} \\*
And the pear is, and so's \\*
The plum, I suppose. \\*
The dear only knows \\*
What will next prove a rose.\index{rose} \\*
You, of course, are a rose - \\*
But were always a rose.\\*
Robert Frost\\*
\end{ekdverse}
\end{ekdosis}
\printindex
\end{document}
```
| 1 | https://tex.stackexchange.com/users/72582 | 684226 | 317,423 |
https://tex.stackexchange.com/questions/684223 | 2 | The programme compiles perfectly when:
```
\addcontentsline{toc}{chapter}{Bibliography}
\nocite{*}
\bibliographystyle{plain}
%\bibliography{./include/subBookgrsrevised2018}
\newpage\null\thispagestyle{empty}\newpage
```
However once the `\bibliography{./include/subBookgrsrevised2018}` is added I get the following:
>
> ! Argument of \year@short has an extra }.
>
> \par
> l.19 }
>
>
>
The .bib is:
```
@misc{ab,
title ="{P}rocess Control Instruction PID",
author = "{A}lan {B}radley {USA}",
note ="Instruction Set Reference",
year ="(circa 1990)",
}
@manual{al50,
title ="{C}haract.curves {NTT} 50-160/01",
author = "{A}llweiler{AG}",
edition ="V2.06, Curve number 050 01160 0129",
note ="Aust Agent Pump Power Aust Pty Ltd, email Nov 14, 2014",
address ="Melbourne, Australia",
year ="2014",
}
@manual{al77,
title ="{V}olute {C}asing {C}entrifugal {P}umps {PN}16 for {H}eat {T}ransfer {O}ils up to 350 deg {C}",
Author ="{A}llweiler {AG}",
address ={Radolfzell, Germany},
edition ="VM 500 GB/09.04 Ident No. 795277",
year ="2009",
}
@misc{audesk,
author ="{A}utodesk Inc.",
title ="{A}utocad CAD Software",
Note ="http://www.autodesk.com/products/autocad/overview",
Year ="(accessed October 21 2016)",
}
@misc{blzpid,
author = "{B}aelz {A}utomatic",
title ="{O}perating {I}nstructions",
note = "Model 6590",
Year ="2010",
}
@misc{caht12,
author = "{C}astrol",
title ="{P}erfecto HT12 {H}eat {T}ransfer {O}il ",
Note ="http://yairerez.co.il/wp-content/uploads/2015/11/PERFECTO-HT.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{dowthm,
author = {{D}ow Chemical Company},
title ="{D}owtherm Heat Transfer Fluids",
Note ="http://www.dow.com/heattrans/products/synthetic/dowtherm.htm",
Year ="(accessed October 18 2016)",
}
@misc{eath66,
author = {{E}astman Chemical Company},
title ="{T}herminol 66 Heat Transfer Fluid",
Note ="https://www.therminol.com/products/Therminol-66",
Year ="(accessed October 12 2016)",
}
@misc{engtboxbe,
author = {{E}ngineering {T}oolbox},
title ="{B}oiler {E}fficiency",
Year ="(accessed June 2016)",
note = "http://www.engineeringtoolbox.com",
}
@misc{engtboxnpsh,
author = {{E}ngineering {T}oolbox},
title ="{Net} {P}ositive {S}uction {H}ead",
note = "http://www.engineeringtoolbox.com/npsh-net-positive-suction-head-d-634.html ",
Year ="(accessed Sep 2016)",
}
@misc{engtboxpid,
author = {{E}ngineering {T}oolbox},
title ="{P}rocess {C}ontrol {T}erms",
note = "http://www.engineeringtoolbox.com/process-control-terms-d-666.html",
Year ="(accessed Nov 2016)",
}
@misc{engtbox2,
author = {{E}ngineering {T}oolbox},
title ="{V}alves {F}low {C}haracteristics",
note ="https://www.engineeringtoolbox.com/control-valves-flow-characteristics-d-485.html",
Year ="(accessed Oct 2021)",
}
@manual{fictrl,
author = "{F}isher {C}ontrols {I}nternalional {I}nc",
title ="{F}isher {S}izing {M}anual",
date ="April 89",
address ="USA",
year ="1989",
}
@misc{foxb,
title ="{I}ntroduction to {P}rocess {C}ontrol",
author = "{F}oxboro {MA}, {USA}",
note ="ITCG",
year ="(circa 1985)",
}
@misc{gkss,
author = "{GKSS Industrial Heating}",
title ="{G}KSS {I}ndustrial {H}eating, general information",
Note ="from {G}KSS now Uniquip Australia Pty Ltd",
Year ="2013",
}
@misc{hazardsxxI,
title ="{S}afety in Design of ThermalFluid Heat Transfer Systems",
author = {{T}ony {E}nnis},
note ="Symposium Series 155 Hazards XXI 2009 IChemE",
year ="2009",
}
@misc{hazardsxxII,
title ="{F}ire and explosion hazards with thermal fluid systems",
author = "{A}lisom McKay Projen plc UK and {R}ichard Bradley Heat Transfer systems {UK}",
note ="Symposium Series 156 hazards XXII 2011 IChemE",
year ="2011",
}
@manual{heattl,
author = "{W}alter{W}agner",
title ="{H}eat {T}ransfer {T}echnique with {O}rganic {M}edia",
date ="3rd {E}dition, {D}ecember 1975",
address ="{S}chwetzingen {G}ermany",
year ="1977",
}
@misc{hwell,
author = "{H}oneywell",
title ="{P}rocess {C}ontroller {P}roduct {M}anual, {UDC3300}",
year ="(accessed November 16 2016)",
note = "https://www.honeywellprocess.com/library/support/Public/Documents/51-52-25-86.pdf",
}
@misc{idc,
author = "{I}ndustrial {D}ata {C}ommunications {P}ty {L}td",
title ="{P}rocess {C}ontrol {T}heory",
note ="2.01, Practical Process Control for Engineers and Technicians",
year ="1995",
}
@manual{kern,
title ="{P}rocess {H}eat {T}ransfer",
author ="{K}ern, D.Q.",
edition ="{I}nternational {S}tudent {E}dition",
note ="ISBN 0-07-Y85353-3",
address ="McGraw Hill, Singapore",
year ="1986",
}
@misc{kf21d,
author ="{K}laus Fischer",
title ="{D}ifferential Pressure Switch type 21D",
Note ="http://www.dartinstruments.com.au/images/transswi/fischer/DS21-english-alt.pdf",
Year ="(accessed October 14 2016)",
}
@misc{kopr,
author = "{J}etlube Co",
title ="{K}opr-Kote Anti Seize Compound",
Note ="http://www.jetlube.com/pdf/KOPR-KOTE-INDUSTRIAL-tds.pdf",
Year ="(accessed October 21 2016)",
}
@misc{mcad,
author = {{H}erne Software},
title ="{M}athcad",
Note ="www.hearne.software/mathcad",
Year ="(accessed November 12 2016)",
}
@misc{mobil600,
author = {{E}xon Mobil},
title ="{M}obiltherm 600 Series {H}eat {T}ransfer {O}ils",
Note ="https://lubes.exxonmobil.com/MarineLubes-En/Files/mobiltherm-600-Series-factsheet.pdf",
Year ="(accessed October 08 2016)",
}
@misc{mobiltb,
author = {{M}obil {O}il {C}orporation},
title ="{T}echnical {B}ulletin {H}eating with {M}obiltherm",
note = "Reference JEB 782305",
Year ="1978",
}
@misc{moly,
author = {{B}elray Company},
title ="{B}llRay Molylube Extreme Pressure Grease",
Note ="http://www.belray.com/molylube-extreme-pressure-grease-ac-0",
Year ="(accessed October 14 2016)",
}
@misc{nbic,
author = {{N}orthern {B}oard {I}nspection {C}ode},
title ="{T}hermal {F}luid {H}eaters",
note = "NB23 2.2.12.7 Section 2 Pages 17-18",
Year ="2019",
}
@misc{parat,
author = {{P}aratherm},
title ="{TAN}(Neutralisation Number",
Note ="http://www.paratherm.com",
Year ="(accessed October 21 2021)",
}
@misc{perm,
Author = "{P}ermutit Company",
title ="Dearator Information",
note = "Permutit now Siemens Water Technologies",
year = "2000",
}
@misc{radcoblr,
Author ="{R}adco {B}oilers",
title = {General historical information Hot Oil Systems},
year ="1981"
}
@manual{radcoflx,
title = {Variable Pipe Supports PS001},
author ="{R}adcoflex {A}ustralia Pty Ltd",
year ="(accessed Sep 2016)",
note = "http://www.radcoflex.com.au/datasheets/ps001.pdf",
}
@misc{Rathi,
author = "{R}athi Couplings Australia",
title ="{R}athi Spacer Couplings",
Note ="http://www.rathicouplings.com/",
Year ="(accessed November 12 2016)",
}
@misc{rkc,
author = "{R}ika {K}ogyo Co. Ltd",
title ="{PID} {C}ontrol ",
note ="MD-51H, Pages 16-20",
year ="(circa 1985)",
}
@misc{shoils2,
author = "{S}hell {A}ustralia",
title ="{S}hell {H}eat {T}ransfer {O}il {S}2",
Note ="http://s02.static-shell.com/content/dam/shell/static/ind/downloads/lubes-b2b/other-shell-lubricants/heat-transfer-oil.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{shoiltb,
author = "{{S}hell {A}ustralia}",
title ="{S}hell {H}eat {T}ransfer {O}il {T}hermia {B}",
Note ="http://www.dayanoilco.com/upload/product/1451466936.pdf",
Year ="(accessed Sep 26 2016)",
}
@misc{shtest,
author = "{S}hell {A}ustralia",
title ="{S}hell Heat Transfer Oil Analysis",
Note ="NRHLS Progressive Results",
Year ="2001",
}
@misc{Siem,
author = {{S}iemens Building Technologies},
title ="{S}iemens Burner Controls LFL1.",
Note ="http://www.allcontrols.com.au/pdf/LFL-Gas-Burner-Control2.pdf",
Year ="(accessed October 21 2016)",
}
@misc{siem2,
title ="{C}losed {L}oop {C}ontrol with {S}imatic {S}5",
author = "{S}iemens {AG}",
note ="Basic Concepts",
year ="1989",
}
@misc{sihimtn,
author = {{S}ihi Pumps},
title ="{M}aintenance of ZTN Series Heat Transfer Oil Pumps",
Note ="http://www.ceienterprises.com/downloads/15-02-03.pdf",
Year ="(accessed October 14 2016)",
}
@misc{sihiztn,
author = {{S}ihi Pumps},
title ="{Z}TN Series Heat Transfer Oil Pumps",
Note ="www.sihi-pumps.com",
Year ="(accessed October 14 2016)",
}
@misc{spirax,
author = {{S}pirax {S}arco},
title = "{C}atalogue {I}nformation",
address = "Forge Street Blactown NSW",
year = "(Catalogue accessed June 2016)",
note= {http://www.spiraxsarco.com/global/a}
}
@misc{uqdwg,
author = "{U}niquip {A}ustralia {P}ty {L}td",
Title ="Uniquip Australia Pty Ltd, Schematic Drawing S034-014C, Expansion System, June 2016",
year ="2016",
}
@misc{uqusg,
author = "{U}niquip {A}ustralia Pty Ltd",
title = {Unfired Steam Generator information},
year = "2016",
}
@misc{uts,
author ="{U}niversal {T}echnical {S}ervices",
title = "{TK} {S}olver computer program",
note="http://www.uts.com",
Year ="(accessed May 14, 2016)",
}
@misc{360water,
author = {{360} {W}ater {P}ty {L}td},
title ="{R}eliable {S}olutions for {W}ater {P}roblems",
note = "www.360water.com.au",
Year ="(accessed November 22 2016)",
}
@manual{wbs340362,
title ="{{C}haracteristic {C}urves for the valve range 340/342/346/347, P11}",
Author ="{B}alz and {S}ohn",
address ="Heilbronn, Germany",
year ="2003",
}
@misc{zph,
author ="{cibs} Journal",
title ="{Z}ero Pressure Header Circuits",
note = "Technical guide to low loss headers",
year = "2023"
}
```
I am also looking to reduce the space at the start of chapters.
| https://tex.stackexchange.com/users/116040 | Error when including Bibliography | false | You didn't give enough information to answer (at first you tagged your question with `biblatex` but, from the code you posted, you're not using it).
I tried the following minimal example, the error I got is a wrong format for a date `date ="April 89"` of the entry `fictrl` that should be in the format YYYY-MM-DD.
In general, your .bib file is badly formatted, see Mico's comment
>
> It is simply wrong to write `"{R}ika {K}ogyo Co. Ltd",`, as you're
> misleading BibTeX into believing that it's dealing with a person whose
> surname is "Ltd" and whose given names are "Rika", "Kogyo," and "Co.".
> Yikes! What you should be writing is `{{Rika Kogyo Co. Ltd}},`.
> Similarly, `author ="{A}utodesk Inc.",` should be `author ={{Autodesk Inc.}},`, `author = {{D}ow Chemical Company},` should be `author = {{Dow Chemical Company}},` etc etc
>
>
>
In the entry `al50`, `author = "{A}llweiler{AG}",` should be `author = {{A}llweiler {AG}},` and it's likely there are other errors I have no time to detect.
```
\begin{filecontents}[overwrite]{\jobname.bib}
@misc{ab,
title ="{P}rocess Control Instruction PID",
author = "{A}lan {B}radley {USA}",
note ="Instruction Set Reference",
year ="(circa 1990)",
}
@manual{al50,
title ="{C}haract.curves {NTT} 50-160/01",
author = "{A}llweiler {AG}",
edition ="V2.06, Curve number 050 01160 0129",
note ="Aust Agent Pump Power Aust Pty Ltd, email Nov 14, 2014",
address ="Melbourne, Australia",
year ="2014",
}
@manual{al77,
title ="{V}olute {C}asing {C}entrifugal {P}umps {PN}16 for {H}eat {T}ransfer {O}ils up to 350 deg {C}",
Author ="{A}llweiler {AG}",
address ={Radolfzell, Germany},
edition ="VM 500 GB/09.04 Ident No. 795277",
year ="2009",
}
@misc{audesk,
author ="{A}utodesk Inc.",
title ="{A}utocad CAD Software",
Note ="http://www.autodesk.com/products/autocad/overview",
Year ="(accessed October 21 2016)",
}
@misc{blzpid,
author = "{B}aelz {A}utomatic",
title ="{O}perating {I}nstructions",
note = "Model 6590",
Year ="2010",
}
@misc{caht12,
author = "{C}astrol",
title ="{P}erfecto HT12 {H}eat {T}ransfer {O}il ",
Note ="http://yairerez.co.il/wp-content/uploads/2015/11/PERFECTO-HT.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{dowthm,
author = {{D}ow Chemical Company},
title ="{D}owtherm Heat Transfer Fluids",
Note ="http://www.dow.com/heattrans/products/synthetic/dowtherm.htm",
Year ="(accessed October 18 2016)",
}
@misc{eath66,
author = {{E}astman Chemical Company},
title ="{T}herminol 66 Heat Transfer Fluid",
Note ="https://www.therminol.com/products/Therminol-66",
Year ="(accessed October 12 2016)",
}
@misc{engtboxbe,
author = {{E}ngineering {T}oolbox},
title ="{B}oiler {E}fficiency",
Year ="(accessed June 2016)",
note = "http://www.engineeringtoolbox.com",
}
@misc{engtboxnpsh,
author = {{E}ngineering {T}oolbox},
title ="{Net} {P}ositive {S}uction {H}ead",
note = "http://www.engineeringtoolbox.com/npsh-net-positive-suction-head-d-634.html ",
Year ="(accessed Sep 2016)",
}
@misc{engtboxpid,
author = {{E}ngineering {T}oolbox},
title ="{P}rocess {C}ontrol {T}erms",
note = "http://www.engineeringtoolbox.com/process-control-terms-d-666.html",
Year ="(accessed Nov 2016)",
}
@misc{engtbox2,
author = {{E}ngineering {T}oolbox},
title ="{V}alves {F}low {C}haracteristics",
note ="https://www.engineeringtoolbox.com/control-valves-flow-characteristics-d-485.html",
Year ="(accessed Oct 2021)",
}
@manual{fictrl,
author = "{F}isher {C}ontrols {I}nternalional {I}nc",
title ="{F}isher {S}izing {M}anual",
date={1989-04},
address ="USA",
year ="1989",
}
@misc{foxb,
title ="{I}ntroduction to {P}rocess {C}ontrol",
author = "{F}oxboro {MA}, {USA}",
note ="ITCG",
year ="(circa 1985)",
}
@misc{gkss,
author = "{GKSS Industrial Heating}",
title ="{G}KSS {I}ndustrial {H}eating, general information",
Note ="from {G}KSS now Uniquip Australia Pty Ltd",
Year ="2013",
}
@misc{hazardsxxI,
title ="{S}afety in Design of ThermalFluid Heat Transfer Systems",
author = {{T}ony {E}nnis},
note ="Symposium Series 155 Hazards XXI 2009 IChemE",
year ="2009",
}
@misc{hazardsxxII,
title ="{F}ire and explosion hazards with thermal fluid systems",
author = "{A}lisom McKay Projen plc UK and {R}ichard Bradley Heat Transfer systems {UK}",
note ="Symposium Series 156 hazards XXII 2011 IChemE",
year ="2011",
}
@manual{heattl,
author = "{W}alter{W}agner",
title ="{H}eat {T}ransfer {T}echnique with {O}rganic {M}edia",
date ="3rd {E}dition, {D}ecember 1975",
address ="{S}chwetzingen {G}ermany",
year ="1977",
}
@misc{hwell,
author = "{H}oneywell",
title ="{P}rocess {C}ontroller {P}roduct {M}anual, {UDC3300}",
year ="(accessed November 16 2016)",
note = "https://www.honeywellprocess.com/library/support/Public/Documents/51-52-25-86.pdf",
}
@misc{idc,
author = "{I}ndustrial {D}ata {C}ommunications {P}ty {L}td",
title ="{P}rocess {C}ontrol {T}heory",
note ="2.01, Practical Process Control for Engineers and Technicians",
year ="1995",
}
@manual{kern,
title ="{P}rocess {H}eat {T}ransfer",
author ="{K}ern, D.Q.",
edition ="{I}nternational {S}tudent {E}dition",
note ="ISBN 0-07-Y85353-3",
address ="McGraw Hill, Singapore",
year ="1986",
}
@misc{kf21d,
author ="{K}laus Fischer",
title ="{D}ifferential Pressure Switch type 21D",
Note ="http://www.dartinstruments.com.au/images/transswi/fischer/DS21-english-alt.pdf",
Year ="(accessed October 14 2016)",
}
@misc{kopr,
author = "{J}etlube Co",
title ="{K}opr-Kote Anti Seize Compound",
Note ="http://www.jetlube.com/pdf/KOPR-KOTE-INDUSTRIAL-tds.pdf",
Year ="(accessed October 21 2016)",
}
@misc{mcad,
author = {{H}erne Software},
title ="{M}athcad",
Note ="www.hearne.software/mathcad",
Year ="(accessed November 12 2016)",
}
@misc{mobil600,
author = {{E}xon Mobil},
title ="{M}obiltherm 600 Series {H}eat {T}ransfer {O}ils",
Note ="https://lubes.exxonmobil.com/MarineLubes-En/Files/mobiltherm-600-Series-factsheet.pdf",
Year ="(accessed October 08 2016)",
}
@misc{mobiltb,
author = {{M}obil {O}il {C}orporation},
title ="{T}echnical {B}ulletin {H}eating with {M}obiltherm",
note = "Reference JEB 782305",
Year ="1978",
}
@misc{moly,
author = {{B}elray Company},
title ="{B}llRay Molylube Extreme Pressure Grease",
Note ="http://www.belray.com/molylube-extreme-pressure-grease-ac-0",
Year ="(accessed October 14 2016)",
}
@misc{nbic,
author = {{N}orthern {B}oard {I}nspection {C}ode},
title ="{T}hermal {F}luid {H}eaters",
note = "NB23 2.2.12.7 Section 2 Pages 17-18",
Year ="2019",
}
@misc{parat,
author = {{P}aratherm},
title ="{TAN}(Neutralisation Number",
Note ="http://www.paratherm.com",
Year ="(accessed October 21 2021)",
}
@misc{perm,
Author = "{P}ermutit Company",
title ="Dearator Information",
note = "Permutit now Siemens Water Technologies",
year = "2000",
}
@misc{radcoblr,
Author ="{R}adco {B}oilers",
title = {General historical information Hot Oil Systems},
year ="1981"
}
@manual{radcoflx,
title = {Variable Pipe Supports PS001},
author ="{R}adcoflex {A}ustralia Pty Ltd",
year ="(accessed Sep 2016)",
note = "http://www.radcoflex.com.au/datasheets/ps001.pdf",
}
@misc{Rathi,
author = "{R}athi Couplings Australia",
title ="{R}athi Spacer Couplings",
Note ="http://www.rathicouplings.com/",
Year ="(accessed November 12 2016)",
}
@misc{rkc,
author = "{R}ika {K}ogyo Co. Ltd",
title ="{PID} {C}ontrol ",
note ="MD-51H, Pages 16-20",
year ="(circa 1985)",
}
@misc{shoils2,
author = "{S}hell {A}ustralia",
title ="{S}hell {H}eat {T}ransfer {O}il {S}2",
Note ="http://s02.static-shell.com/content/dam/shell/static/ind/downloads/lubes-b2b/other-shell-lubricants/heat-transfer-oil.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{shoiltb,
author = "{{S}hell {A}ustralia}",
title ="{S}hell {H}eat {T}ransfer {O}il {T}hermia {B}",
Note ="http://www.dayanoilco.com/upload/product/1451466936.pdf",
Year ="(accessed Sep 26 2016)",
}
@misc{shtest,
author = "{S}hell {A}ustralia",
title ="{S}hell Heat Transfer Oil Analysis",
Note ="NRHLS Progressive Results",
Year ="2001",
}
@misc{Siem,
author = {{S}iemens Building Technologies},
title ="{S}iemens Burner Controls LFL1.",
Note ="http://www.allcontrols.com.au/pdf/LFL-Gas-Burner-Control2.pdf",
Year ="(accessed October 21 2016)",
}
@misc{siem2,
title ="{C}losed {L}oop {C}ontrol with {S}imatic {S}5",
author = "{S}iemens {AG}",
note ="Basic Concepts",
year ="1989",
}
@misc{sihimtn,
author = {{S}ihi Pumps},
title ="{M}aintenance of ZTN Series Heat Transfer Oil Pumps",
Note ="http://www.ceienterprises.com/downloads/15-02-03.pdf",
Year ="(accessed October 14 2016)",
}
@misc{sihiztn,
author = {{S}ihi Pumps},
title ="{Z}TN Series Heat Transfer Oil Pumps",
Note ="www.sihi-pumps.com",
Year ="(accessed October 14 2016)",
}
@misc{spirax,
author = {{S}pirax {S}arco},
title = "{C}atalogue {I}nformation",
address = "Forge Street Blactown NSW",
year = "(Catalogue accessed June 2016)",
note= {http://www.spiraxsarco.com/global/a}
}
@misc{uqdwg,
author = "{U}niquip {A}ustralia {P}ty {L}td",
Title ="Uniquip Australia Pty Ltd, Schematic Drawing S034-014C, Expansion System, June 2016",
year ="2016",
}
@misc{uqusg,
author = "{U}niquip {A}ustralia Pty Ltd",
title = {Unfired Steam Generator information},
year = "2016",
}
@misc{uts,
author ="{U}niversal {T}echnical {S}ervices",
title = "{TK} {S}olver computer program",
note="http://www.uts.com",
Year ="(accessed May 14, 2016)",
}
@misc{360water,
author = {{360} {W}ater {P}ty {L}td},
title ="{R}eliable {S}olutions for {W}ater {P}roblems",
note = "www.360water.com.au",
Year ="(accessed November 22 2016)",
}
@manual{wbs340362,
title ="{{C}haracteristic {C}urves for the valve range 340/342/346/347, P11}",
Author ="{B}alz and {S}ohn",
address ="Heilbronn, Germany",
year ="2003",
}
@misc{zph,
author ="{cibs} Journal",
title ="{Z}ero Pressure Header Circuits",
note = "Technical guide to low loss headers",
year = "2023"
}
\end{filecontents}
\documentclass{article}
\begin{document}
\addcontentsline{toc}{chapter}{Bibliography}
\nocite{*}
\bibliographystyle{plain}
\bibliography{\jobname}
\newpage\null\thispagestyle{empty}\newpage
\end{document}
```
Regarding the second question (to reduce the space at the start of chapters) you gave not enough information to answer. Which `documentclass` are you using? Please add a complete minimal example (like the one I posted) to your question.
| 4 | https://tex.stackexchange.com/users/101651 | 684228 | 317,425 |
https://tex.stackexchange.com/questions/684150 | 0 | I am using the "awesome-cv" template from [here](https://www.latextemplates.com/template/awesome-resume-cv) (which, judging by all the questions for how to modify/expand it, seems to have some issues). I want to add a bibliography to the included cover letter template, so that I can provide proper references in the cover letter with a list of references at the end; further, I would like to be able to cite my own published writing in the CV portion and have them properly formatted as bibliography entries.
However, unlike my own documents, when I add the following lines in the preamble to the cover-letter (for example):
```
\usepackage[authordate,natbib,backend=biber,alldates=iso,idemtracker=context,ibidtracker=context,dateabbrev=false,language=english,useprefix,eventdate=comp,parentracker=true]{biblatex-chicago}
\addbibresource{/path/to/bibtex/file/bookbib.bib}
```
I get errors about biber and biblatex being incompatible. What do I need to do to fix this so it works properly?
Thanks for the help!
| https://tex.stackexchange.com/users/56678 | How to integrate biblatex-chicago into this "awesome-cv" template? | false | In general there is no problem using `biblatex-chicago` with the shown template.
In this case there was an installation issue that caused problems.
---
The error message
```
ERROR - Error: Found biblatex control file version 3.7, expected version 3.10.
This means that your biber (2.19) and biblatex (3.16) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.
```
the OP got can be read at face value. For some reason the `biblatex` version that was used when the document is compiled with LaTeX is incompatible with the Biber version. Specifically, the `biblatex` version that is being used is outdated.
Usually this happens if the TeX system was not properly updated or if certain packages were installed manually.
---
In this case the problem appears to have been the presence of multiple TeX systems in various states of completeness.
The template requests XeLaTeX compilation via magic commands in the `.tex` file. Apparently this triggered a XeLaTeX from the older installation, whereas the subsequent Biber run was from a newer installation. The OP solved the issue by switching compilation to LuaLaTeX, which apparently also comes from the newer system.
Unless you have a good reason to maintain several TeX systems (of which there are many), I suggest you make sure you only have one complete TeX system installed that is kept reasonably up to date. If you need several TeX systems, configure them in such a way that they don't interfere with each other.
| 1 | https://tex.stackexchange.com/users/35864 | 684230 | 317,427 |
https://tex.stackexchange.com/questions/684190 | 1 | Based on [Biblatex: Two bibliographies with different styles and sortings](https://tex.stackexchange.com/questions/299064/biblatex-two-bibliographies-with-different-styles-and-sortings), I have the following MWE.
```
\documentclass{article}
%%% To use with the \DeclareFieldFormat and \defbibenvironment below:
% \usepackage[backend=biber, style=alphabetic, labelnumber, defernumbers=true]{biblatex}
\usepackage[backend=biber, style=authoryear, sorting=none, natbib=true, backref]{biblatex}
% Append keywords to identify different bibliography entries.
% appendstrict only appends if the field is nonempty,
% we use that to add a comma to avoid mushing together two keywords
\DeclareSourcemap{
\maps[datatype=bibtex, overwrite]{
\map{
\perdatasource{Referenzen_academic.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=primary, append]
}
\map{
\perdatasource{Referenzen_popular.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=secondary, append]
}
}
}
\begin{filecontents}{Referenzen_academic.bib}
@BOOK{BookA03,
author = {Author Aaa},
title = {Some Title},
publisher = {Some Publisher},
year = 2003,
% keywords = {hello},
}
@BOOK{BookB02,
author = {Author Bbb},
title = {Some Title},
publisher = {Some Publisher},
year = 2002,
}
\end{filecontents}
\begin{filecontents}{Referenzen_popular.bib}
@MISC{LinkC04,
author = {Author Ccc},
title = {Some Title},
year = 2004,
url = {www.test1.com/bild.jpg},
% keywords = {bye},
}
@MISC{LinkD01,
author = {Author Ddd},
title = {Some Title},
year = 2001,
url = {www.test2.com/bild.jpg},
}
\end{filecontents}
\addbibresource{Referenzen_academic.bib}
\addbibresource{Referenzen_popular.bib}
\usepackage{hyperref}
\begin{document}
The first two citations \cite{LinkD01} and \cite{BookB02}.
The others are \cite{LinkC04} and \cite{BookA03}.
\printbibliography[title=Bibliography (academic), keyword=primary]
\newrefcontext[sorting=none]
% \printbibliography[env=bibliographyNUM, title=References, keyword=secondary, resetnumbers]
\printbibliography[title=Bibliography (conventional), keyword=secondary]
\end{document}
```
I have two different bibliography files. I would like that the bibliographies themselves are the same (as shown). But, I would like that the citing for each are different. Namely, I would like that the citings in the main body of text for the second article contain author and title instead of author and year. How can I do this?
| https://tex.stackexchange.com/users/49283 | Citation as author-title instead of author-year; but only for references from a certain file | false | Is it OK for you to use a different citation command (`\authtitcite` in my MWE) in the second article?
```
\documentclass{article}
%%% To use with the \DeclareFieldFormat and \defbibenvironment below:
% \usepackage[backend=biber, style=alphabetic, labelnumber, defernumbers=true]{biblatex}
\usepackage[backend=biber, style=authoryear, sorting=none, natbib=true, backref]{biblatex}
% Append keywords to identify different bibliography entries.
% appendstrict only appends if the field is nonempty,
% we use that to add a comma to avoid mushing together two keywords
\DeclareSourcemap{
\maps[datatype=bibtex, overwrite]{
\map{
\perdatasource{Referenzen_academic.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=primary, append]
}
\map{
\perdatasource{Referenzen_popular.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=secondary, append]
}
}
}
\begin{filecontents}{Referenzen_academic.bib}
@BOOK{BookA03,
author = {Author Aaa},
title = {Some Title},
publisher = {Some Publisher},
year = 2003,
% keywords = {hello},
}
@BOOK{BookB02,
author = {Author Bbb},
title = {Some Title},
publisher = {Some Publisher},
year = 2002,
}
\end{filecontents}
\begin{filecontents}{Referenzen_popular.bib}
@MISC{LinkC04,
author = {Author Ccc},
title = {Some Title},
year = 2004,
url = {www.test1.com/bild.jpg},
% keywords = {bye},
}
@MISC{LinkD01,
author = {Author Ddd},
title = {Some Title},
year = 2001,
url = {www.test2.com/bild.jpg},
}
\end{filecontents}
% Adapted from https://tex.stackexchange.com/a/123145/101651
\DeclareCiteCommand{\authtitcite}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}%
\indexfield{indextitle}}
{}%
\printnames{labelname}%
\setunit{\addcomma\addspace}%
\printfield[citetitle]{labeltitle}}
{\multicitedelim}
{\usebibmacro{postnote}}
\addbibresource{Referenzen_academic.bib}
\addbibresource{Referenzen_popular.bib}
\usepackage{hyperref}
\begin{document}
Do you intend this in the first article:
The first two citations \cite{LinkD01} and \cite{BookB02}.
and this in the second article:
The others are \authtitcite{LinkC04} and \authtitcite{BookA03}.
?
\printbibliography[title=Bibliography (academic), keyword=primary]
\newrefcontext[sorting=none]
% \printbibliography[env=bibliographyNUM, title=References, keyword=secondary, resetnumbers]
\printbibliography[title=Bibliography (conventional), keyword=secondary]
\end{document}
```
| 0 | https://tex.stackexchange.com/users/101651 | 684231 | 317,428 |
https://tex.stackexchange.com/questions/684233 | 0 | Is there a built-in function that can extract the signature of a `LaTeX3` function ?
```
\documentclass{article}
\ExplSyntaxOn
% From https://www.alanshawn.com/latex3-tutorial/#defining-and-using-variables
\cs_set:Npn \my_concat:nn #1#2 {
#1,~#2
}
\ExplSyntaxOff
\NewDocumentCommand\givesignature{m}{???}
\begin{document}
Signature of \verb#\my_concat# : \givesignature{\my_concat}
% Output expected here: nn #1#2
\end{document}
```
| https://tex.stackexchange.com/users/6880 | Extracting the signature of a LaTeX3 function | false | There might be
```
\my_concat:
\my_concat:n
\my_concat:nn
\my_concat:nV
\my_concat:nnn
\my_concat:w
```
and so on *ad infinitum*. Well, no, because of the hardwired limitation to nine arguments; but you get the idea.
And there is ***no*** way to ask TeX for a list of all macros whose name starts with `\my_concat:`.
| 2 | https://tex.stackexchange.com/users/4427 | 684234 | 317,430 |
https://tex.stackexchange.com/questions/684223 | 2 | The programme compiles perfectly when:
```
\addcontentsline{toc}{chapter}{Bibliography}
\nocite{*}
\bibliographystyle{plain}
%\bibliography{./include/subBookgrsrevised2018}
\newpage\null\thispagestyle{empty}\newpage
```
However once the `\bibliography{./include/subBookgrsrevised2018}` is added I get the following:
>
> ! Argument of \year@short has an extra }.
>
> \par
> l.19 }
>
>
>
The .bib is:
```
@misc{ab,
title ="{P}rocess Control Instruction PID",
author = "{A}lan {B}radley {USA}",
note ="Instruction Set Reference",
year ="(circa 1990)",
}
@manual{al50,
title ="{C}haract.curves {NTT} 50-160/01",
author = "{A}llweiler{AG}",
edition ="V2.06, Curve number 050 01160 0129",
note ="Aust Agent Pump Power Aust Pty Ltd, email Nov 14, 2014",
address ="Melbourne, Australia",
year ="2014",
}
@manual{al77,
title ="{V}olute {C}asing {C}entrifugal {P}umps {PN}16 for {H}eat {T}ransfer {O}ils up to 350 deg {C}",
Author ="{A}llweiler {AG}",
address ={Radolfzell, Germany},
edition ="VM 500 GB/09.04 Ident No. 795277",
year ="2009",
}
@misc{audesk,
author ="{A}utodesk Inc.",
title ="{A}utocad CAD Software",
Note ="http://www.autodesk.com/products/autocad/overview",
Year ="(accessed October 21 2016)",
}
@misc{blzpid,
author = "{B}aelz {A}utomatic",
title ="{O}perating {I}nstructions",
note = "Model 6590",
Year ="2010",
}
@misc{caht12,
author = "{C}astrol",
title ="{P}erfecto HT12 {H}eat {T}ransfer {O}il ",
Note ="http://yairerez.co.il/wp-content/uploads/2015/11/PERFECTO-HT.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{dowthm,
author = {{D}ow Chemical Company},
title ="{D}owtherm Heat Transfer Fluids",
Note ="http://www.dow.com/heattrans/products/synthetic/dowtherm.htm",
Year ="(accessed October 18 2016)",
}
@misc{eath66,
author = {{E}astman Chemical Company},
title ="{T}herminol 66 Heat Transfer Fluid",
Note ="https://www.therminol.com/products/Therminol-66",
Year ="(accessed October 12 2016)",
}
@misc{engtboxbe,
author = {{E}ngineering {T}oolbox},
title ="{B}oiler {E}fficiency",
Year ="(accessed June 2016)",
note = "http://www.engineeringtoolbox.com",
}
@misc{engtboxnpsh,
author = {{E}ngineering {T}oolbox},
title ="{Net} {P}ositive {S}uction {H}ead",
note = "http://www.engineeringtoolbox.com/npsh-net-positive-suction-head-d-634.html ",
Year ="(accessed Sep 2016)",
}
@misc{engtboxpid,
author = {{E}ngineering {T}oolbox},
title ="{P}rocess {C}ontrol {T}erms",
note = "http://www.engineeringtoolbox.com/process-control-terms-d-666.html",
Year ="(accessed Nov 2016)",
}
@misc{engtbox2,
author = {{E}ngineering {T}oolbox},
title ="{V}alves {F}low {C}haracteristics",
note ="https://www.engineeringtoolbox.com/control-valves-flow-characteristics-d-485.html",
Year ="(accessed Oct 2021)",
}
@manual{fictrl,
author = "{F}isher {C}ontrols {I}nternalional {I}nc",
title ="{F}isher {S}izing {M}anual",
date ="April 89",
address ="USA",
year ="1989",
}
@misc{foxb,
title ="{I}ntroduction to {P}rocess {C}ontrol",
author = "{F}oxboro {MA}, {USA}",
note ="ITCG",
year ="(circa 1985)",
}
@misc{gkss,
author = "{GKSS Industrial Heating}",
title ="{G}KSS {I}ndustrial {H}eating, general information",
Note ="from {G}KSS now Uniquip Australia Pty Ltd",
Year ="2013",
}
@misc{hazardsxxI,
title ="{S}afety in Design of ThermalFluid Heat Transfer Systems",
author = {{T}ony {E}nnis},
note ="Symposium Series 155 Hazards XXI 2009 IChemE",
year ="2009",
}
@misc{hazardsxxII,
title ="{F}ire and explosion hazards with thermal fluid systems",
author = "{A}lisom McKay Projen plc UK and {R}ichard Bradley Heat Transfer systems {UK}",
note ="Symposium Series 156 hazards XXII 2011 IChemE",
year ="2011",
}
@manual{heattl,
author = "{W}alter{W}agner",
title ="{H}eat {T}ransfer {T}echnique with {O}rganic {M}edia",
date ="3rd {E}dition, {D}ecember 1975",
address ="{S}chwetzingen {G}ermany",
year ="1977",
}
@misc{hwell,
author = "{H}oneywell",
title ="{P}rocess {C}ontroller {P}roduct {M}anual, {UDC3300}",
year ="(accessed November 16 2016)",
note = "https://www.honeywellprocess.com/library/support/Public/Documents/51-52-25-86.pdf",
}
@misc{idc,
author = "{I}ndustrial {D}ata {C}ommunications {P}ty {L}td",
title ="{P}rocess {C}ontrol {T}heory",
note ="2.01, Practical Process Control for Engineers and Technicians",
year ="1995",
}
@manual{kern,
title ="{P}rocess {H}eat {T}ransfer",
author ="{K}ern, D.Q.",
edition ="{I}nternational {S}tudent {E}dition",
note ="ISBN 0-07-Y85353-3",
address ="McGraw Hill, Singapore",
year ="1986",
}
@misc{kf21d,
author ="{K}laus Fischer",
title ="{D}ifferential Pressure Switch type 21D",
Note ="http://www.dartinstruments.com.au/images/transswi/fischer/DS21-english-alt.pdf",
Year ="(accessed October 14 2016)",
}
@misc{kopr,
author = "{J}etlube Co",
title ="{K}opr-Kote Anti Seize Compound",
Note ="http://www.jetlube.com/pdf/KOPR-KOTE-INDUSTRIAL-tds.pdf",
Year ="(accessed October 21 2016)",
}
@misc{mcad,
author = {{H}erne Software},
title ="{M}athcad",
Note ="www.hearne.software/mathcad",
Year ="(accessed November 12 2016)",
}
@misc{mobil600,
author = {{E}xon Mobil},
title ="{M}obiltherm 600 Series {H}eat {T}ransfer {O}ils",
Note ="https://lubes.exxonmobil.com/MarineLubes-En/Files/mobiltherm-600-Series-factsheet.pdf",
Year ="(accessed October 08 2016)",
}
@misc{mobiltb,
author = {{M}obil {O}il {C}orporation},
title ="{T}echnical {B}ulletin {H}eating with {M}obiltherm",
note = "Reference JEB 782305",
Year ="1978",
}
@misc{moly,
author = {{B}elray Company},
title ="{B}llRay Molylube Extreme Pressure Grease",
Note ="http://www.belray.com/molylube-extreme-pressure-grease-ac-0",
Year ="(accessed October 14 2016)",
}
@misc{nbic,
author = {{N}orthern {B}oard {I}nspection {C}ode},
title ="{T}hermal {F}luid {H}eaters",
note = "NB23 2.2.12.7 Section 2 Pages 17-18",
Year ="2019",
}
@misc{parat,
author = {{P}aratherm},
title ="{TAN}(Neutralisation Number",
Note ="http://www.paratherm.com",
Year ="(accessed October 21 2021)",
}
@misc{perm,
Author = "{P}ermutit Company",
title ="Dearator Information",
note = "Permutit now Siemens Water Technologies",
year = "2000",
}
@misc{radcoblr,
Author ="{R}adco {B}oilers",
title = {General historical information Hot Oil Systems},
year ="1981"
}
@manual{radcoflx,
title = {Variable Pipe Supports PS001},
author ="{R}adcoflex {A}ustralia Pty Ltd",
year ="(accessed Sep 2016)",
note = "http://www.radcoflex.com.au/datasheets/ps001.pdf",
}
@misc{Rathi,
author = "{R}athi Couplings Australia",
title ="{R}athi Spacer Couplings",
Note ="http://www.rathicouplings.com/",
Year ="(accessed November 12 2016)",
}
@misc{rkc,
author = "{R}ika {K}ogyo Co. Ltd",
title ="{PID} {C}ontrol ",
note ="MD-51H, Pages 16-20",
year ="(circa 1985)",
}
@misc{shoils2,
author = "{S}hell {A}ustralia",
title ="{S}hell {H}eat {T}ransfer {O}il {S}2",
Note ="http://s02.static-shell.com/content/dam/shell/static/ind/downloads/lubes-b2b/other-shell-lubricants/heat-transfer-oil.pdf",
Year ="(accessed Sep 27 2016)",
}
@misc{shoiltb,
author = "{{S}hell {A}ustralia}",
title ="{S}hell {H}eat {T}ransfer {O}il {T}hermia {B}",
Note ="http://www.dayanoilco.com/upload/product/1451466936.pdf",
Year ="(accessed Sep 26 2016)",
}
@misc{shtest,
author = "{S}hell {A}ustralia",
title ="{S}hell Heat Transfer Oil Analysis",
Note ="NRHLS Progressive Results",
Year ="2001",
}
@misc{Siem,
author = {{S}iemens Building Technologies},
title ="{S}iemens Burner Controls LFL1.",
Note ="http://www.allcontrols.com.au/pdf/LFL-Gas-Burner-Control2.pdf",
Year ="(accessed October 21 2016)",
}
@misc{siem2,
title ="{C}losed {L}oop {C}ontrol with {S}imatic {S}5",
author = "{S}iemens {AG}",
note ="Basic Concepts",
year ="1989",
}
@misc{sihimtn,
author = {{S}ihi Pumps},
title ="{M}aintenance of ZTN Series Heat Transfer Oil Pumps",
Note ="http://www.ceienterprises.com/downloads/15-02-03.pdf",
Year ="(accessed October 14 2016)",
}
@misc{sihiztn,
author = {{S}ihi Pumps},
title ="{Z}TN Series Heat Transfer Oil Pumps",
Note ="www.sihi-pumps.com",
Year ="(accessed October 14 2016)",
}
@misc{spirax,
author = {{S}pirax {S}arco},
title = "{C}atalogue {I}nformation",
address = "Forge Street Blactown NSW",
year = "(Catalogue accessed June 2016)",
note= {http://www.spiraxsarco.com/global/a}
}
@misc{uqdwg,
author = "{U}niquip {A}ustralia {P}ty {L}td",
Title ="Uniquip Australia Pty Ltd, Schematic Drawing S034-014C, Expansion System, June 2016",
year ="2016",
}
@misc{uqusg,
author = "{U}niquip {A}ustralia Pty Ltd",
title = {Unfired Steam Generator information},
year = "2016",
}
@misc{uts,
author ="{U}niversal {T}echnical {S}ervices",
title = "{TK} {S}olver computer program",
note="http://www.uts.com",
Year ="(accessed May 14, 2016)",
}
@misc{360water,
author = {{360} {W}ater {P}ty {L}td},
title ="{R}eliable {S}olutions for {W}ater {P}roblems",
note = "www.360water.com.au",
Year ="(accessed November 22 2016)",
}
@manual{wbs340362,
title ="{{C}haracteristic {C}urves for the valve range 340/342/346/347, P11}",
Author ="{B}alz and {S}ohn",
address ="Heilbronn, Germany",
year ="2003",
}
@misc{zph,
author ="{cibs} Journal",
title ="{Z}ero Pressure Header Circuits",
note = "Technical guide to low loss headers",
year = "2023"
}
```
I am also looking to reduce the space at the start of chapters.
| https://tex.stackexchange.com/users/116040 | Error when including Bibliography | false | I'm afraid there's no way to sugarcoat the bad news: There are many errors and inaccuracies in your bib file. Among them are
* Failure to identify "corporate" authors as such. It is simply wrong to write `author="{R}ika {K}ogyo Co. Ltd"`, as you're misleading BibTeX into believing that it's dealing with a person whose surname is "Ltd" and whose given names are "Rika", "Kogyo," and "Co.". Yikes! What you should be writing is `author={{Rika Kogyo Co. Ltd}},`. Similarly, `author ="{A}utodesk Inc."` should be `author ={{Autodesk Inc.}}`, `author = {{D}ow Chemical Company}` should be `author = {{Dow Chemical Company}}`, etc etc.
* `author = "{F}oxboro {MA}, {USA}"` simply cannot be correct, as Foxboro is a town in Massachusetts, which is a state in the New England area of the US. Poor BibTeX has no choice but to think it's dealing with an author whose surname is "USA" and whose given names are "Foxboro" and "MA". In my view, the entry's actual author is *missing* and the field should be address = "Foxboro MA",. (If readers can't figure out that "MA" stands for "Massachusetts", they need help of a far different kind...)
* Another case of information (likely) being faulty concerns the two entries authored by `{{Allweiler AG}}`, which is an example of a "corporate" author. Did this company really move from Radolfzell, Germany to Melbourne, Australia between 2009 and 2014? I suppose it's *not entirely impossible* that they made such a long-distance move. However, I do harbor some doubts that this is indeed the case.
* By the way, I've heard of a company called `Allen-Bradley` (yes, with a hyphenation character in its name; moreover, they are based in the US), but not of one called `Alan Bradley USA`, in the field of interest to the bib instruction.
* Because you've chosen to employ the almost prehistorically-ancient `plain` bibliography style, you can't process URL strings properly. I suggest you switch to the much newer `plainnat` bibliography style and change many of the `note` field names to `url`. In the entries affected by this change, you'll also need to change the `year` field to `note`. I further recommend you load the `xurl` package so that long URL strings may be line-broken *anywhere*.
* A number of URL strings no longer seem to be valid. E.g., `http://www.360water.com.au/`. The fact that this URL may have been valid when you last visited this site, way back in November 2016, isn't much of an excuse, is it? You owe it to your readers to ensure that the information in the URL strings is still valid. If you know the URL string is invalid at this point in time and you simply can't come up with something that is up to date, please just don't show the invalid URL string.
* By my count, 27 of the 48 entries don't have a `year` field. This leads to BibTeX issuing 27 warning (not error) messages. Do please try to supply the missing `year` information.
* Some entries have a field called `date` instead of `year`. Unfortunately, BibTeX -- unlike biblatex/biber -- doesn't recognize a field called `date`. In those cases, it's necessary to manually edit the entries to allocate the information contained in the `date` field to new fields (generally `year` and `month`).
Once you've fixed these issues -- which I really think you owe to your readers... -- the error message you report in your query goes away by itself.
Making the recommended changes (minus the one about switching from `plain` to `plainnat`) will also be useful if you choose to employ biblatex/biber instead of natbib/plainnat.
The following screenshot shows the first 5 of the 48 entries in total.
```
\documentclass{article}
\begin{filecontents}[overwrite]{test.bib}
@misc{ab,
title = "Process Control Instruction {PID}",
author = {{Alan Bradley USA}},
note = "Instruction Set Reference, (circa 1990)",
}
@manual{al50,
title = "Charact.curves {NTT} 50-160/01",
author = {{Allweiler AG}},
edition = "V2.06, {Curve} number 050 01160 0129",
note = "Aust Agent Pump Power Aust Pty Ltd, email Nov 14, 2014",
address = "Melbourne, Australia",
year = "2014",
}
@manual{al77,
title = "Volute Casing Centrifugal Pumps {PN16} for Heat Transfer Oils up to 350 deg~{C}",
Author = {{Allweiler AG}},
address = {Radolfzell, Germany},
edition = "VM 500 GB/09.04 Ident No. 795277",
year = "2009",
}
@misc{audesk,
author = {{Autodesk Inc.}},
title = "Autocad {CAD} Software",
url = "http://www.autodesk.com/products/autocad/overview",
note = "(accessed October 21 2016)",
}
@misc{blzpid,
author = {{Baelz Automatic}},
title = "Operating Instructions",
note = "Model 6590",
Year = "2010",
}
@misc{caht12,
author = "Castrol",
title = "Perfecto {HT12} Heat Transfer Oil ",
url = "http://yairerez.co.il/wp-content/uploads/2015/11/PERFECTO-HT.pdf",
note = "(accessed Sep 27 2016)",
}
@misc{dowthm,
author = {{Dow Chemical Company}},
title = "Dowtherm Heat Transfer Fluids",
url = "http://www.dow.com/heattrans/products/synthetic/dowtherm.htm",
note = "(accessed October 18 2016)",
}
@misc{eath66,
author = {{Eastman Chemical Company}},
title = "Therminol 66 Heat Transfer Fluid",
url = "https://www.therminol.com/products/Therminol-66",
note = "(accessed October 12 2016)",
}
@misc{engtboxbe,
author = {{Engineering Toolbox}},
title = "Boiler Efficiency",
note = "(accessed June 2016)",
url = "http://www.engineeringtoolbox.com",
}
@misc{engtboxnpsh,
author = {{Engineering Toolbox}},
title = "Net Positive Suction Head",
url = "http://www.engineeringtoolbox.com/npsh-net-positive-suction-head-d-634.html",
note ="(accessed Sep 2016)",
}
@misc{engtboxpid,
author = {{Engineering Toolbox}},
title = "Process Control Terms",
url = "http://www.engineeringtoolbox.com/process-control-terms-d-666.html",
note = "(accessed Nov 2016)",
}
@misc{engtbox2,
author = {{Engineering Toolbox}},
title = "Valves Flow Characteristics",
url = "https://www.engineeringtoolbox.com/control-valves-flow-characteristics-d-485.html",
note = "(accessed Oct 2021)",
}
@manual{fictrl,
author = {{Fisher Controls Internalional Inc}},
title = "Fisher Sizing Manual",
year = 1989,
month = apr,
address= "USA",
year = "1989",
}
%date ="April 89",
@misc{foxb,
title = "Introduction to Process Control",
author = "Anon.",
howpublished = "Foxboro MA, USA",
note = "ITCG, (circa 1985)",
}
% author field was missing
@misc{gkss,
author = {{GKSS Industrial Heating}},
title = "{GKSS} Industrial Heating, general information",
Note = "From {GKSS}, now Uniquip Australia Pty Ltd",
Year = "2013",
}
@misc{hazardsxxI,
title = "Safety in Design of ThermalFluid Heat Transfer Systems",
author = "Tony Ennis",
note = "Symposium Series 155 Hazards XXI 2009 IChemE",
year = "2009",
}
@misc{hazardsxxII,
title = "Fire and explosion hazards with thermal fluid systems",
author = {{Alisom McKay Projen plc, UK} and {Richard Bradley Heat Transfer systems, UK}},
note = "Symposium Series 156 hazards XXII 2011 IChemE",
year = "2011",
}
@manual{heattl,
author = "Walter Wagner",
title = "Heat Transfer Technique with Organic Media",
year = 1975,
month = dec,
edition= "3rd",
address="Schwetzingen, Germany",
}
%year ="1977",
%date ="3rd {E}dition, {D}ecember 1975",
@misc{hwell,
author = "Honeywell",
title = "Process Controller Product Manual, {UDC3300}",
note = "(accessed November 16 2016)",
url = "https://www.honeywellprocess.com/library/support/Public/Documents/51-52-25-86.pdf",
}
@misc{idc,
author = {{Industrial Data Communications Pty Ltd}},
title = "{P}rocess {C}ontrol {T}heory",
note = "2.01, Practical Process Control for Engineers and Technicians",
year = "1995",
}
@manual{kern,
title = "Process Heat Transfer",
author = "Kern, D. Q.",
edition= "International Student Edition",
isbn = "0-07-Y85353-3",
addres = "McGraw Hill, Singapore",
year = "1986",
}
@misc{kf21d,
author = "Klaus Fischer",
title = "Differential Pressure Switch type {21D}",
url = "http://www.dartinstruments.com.au/images/transswi/fischer/DS21-english-alt.pdf",
note = "(accessed October 14 2016)",
}
@misc{kopr,
author = {{Jetlube Co}},
title = "{Kopr-Kote} Anti Seize Compound",
url = "http://www.jetlube.com/pdf/KOPR-KOTE-INDUSTRIAL-tds.pdf",
note = "(accessed October 21 2016)",
}
@misc{mcad,
author = {{Herne Software}},
title = "Mathcad",
url = "www.hearne.software/mathcad",
note = "(accessed November 12 2016)",
}
@misc{mobil600,
author = {{Exxon Mobil}},
title = "Mobiltherm 600 Series Heat Transfer Oils",
url = "https://lubes.exxonmobil.com/MarineLubes-En/Files/mobiltherm-600-Series-factsheet.pdf",
note = "(accessed October 08 2016)",
}
@misc{mobiltb,
author = {{Mobil Oil Corporation}},
title = "Technical Bulletin, {Heating} with {Mobiltherm}",
note = "Reference JEB 782305",
Year = "1978",
}
@misc{moly,
author = {{Belray Company}},
title = "BellRay Molylube Extreme Pressure Grease",
url = "http://www.belray.com/molylube-extreme-pressure-grease-ac-0",
note = "(accessed October 14 2016)",
}
@misc{nbic,
author = {{Northern Board Inspection Code}},
title = "Thermal Fluid Heaters",
note = "NB23 2.2.12.7 Section~2, Pages 17--18",
Year = "2019",
}
@misc{parat,
author = {Paratherm},
title = "{TAN} (Neutralisation Number)",
url = "http://www.paratherm.com",
note = "(accessed October 21 2021)",
}
@misc{perm,
Author = {{Permutit Company}},
title = "Dearator Information",
note = "Permutit now Siemens Water Technologies",
year = "2000",
}
@misc{radcoblr,
Author = {{Radco Boilers}},
title = {General historical information Hot Oil Systems},
year = "1981",
}
@manual{radcoflx,
title = {Variable Pipe Supports PS001},
author = {{Radcoflex Australia Pty Ltd}},
note = "(accessed Sep 2016)",
url = "http://www.radcoflex.com.au/datasheets/ps001.pdf",
}
@misc{Rathi,
author = {{Rathi Couplings Australia}},
title = "Rathi Spacer Couplings",
url = "http://www.rathicouplings.com/",
note = "(accessed November 12 2016)",
}
@misc{rkc,
author = {{Rika Kogyo Co. Ltd}},
title = "{PID} Control",
note = "MD-51H, Pages 16--20",
year = "(circa 1985)",
}
@misc{shoils2,
author = {{Shell Australia}},
title = "Shell Heat Transfer Oil {S2}",
url = "http://s02.static-shell.com/content/dam/shell/static/ind/downloads/lubes-b2b/other-shell-lubricants/heat-transfer-oil.pdf",
note = "(accessed Sep 27 2016)",
}
@misc{shoiltb,
author = {{Shell Australia}},
title = "Shell Heat Transfer Oil Thermia {B}",
url = "http://www.dayanoilco.com/upload/product/1451466936.pdf",
note = "(accessed Sep 26 2016)",
}
@misc{shtest,
author = {{Shell Australia}},
title = "Shell Heat Transfer Oil Analysis",
Note = "NRHLS Progressive Results",
Year = "2001",
}
@misc{Siem,
author = {{Siemens Building Technologies}},
title = "Siemens Burner Controls {LFL1}",
url = "http://www.allcontrols.com.au/pdf/LFL-Gas-Burner-Control2.pdf",
note = "(accessed October 21 2016)",
}
@misc{siem2,
title = "Closed Loop Control with {Simatic S5}",
author = {{Siemens AG}},
note = "Basic Concepts",
year = "1989",
}
@misc{sihimtn,
author = {{Sihi Pumps}},
title = "Maintenance of {ZTN} Series Heat Transfer Oil Pumps",
url = "http://www.ceienterprises.com/downloads/15-02-03.pdf",
note = "(accessed October 14 2016)",
}
@misc{sihiztn,
author = {{Sihi Pumps}},
title = "{ZTN} Series Heat Transfer Oil Pumps",
url = "www.sihi-pumps.com",
note = "(accessed October 14 2016)",
}
@misc{spirax,
author = {{Spirax Sarco}},
title = "Catalogue Information",
howpublished = "Forge Street Blactown NSW",
note = "(Catalogue accessed June 2016)",
url = {http://www.spiraxsarco.com/global/a}
}
@misc{uqdwg,
author = {{Uniquip Australia Pty Ltd}},
Title = "Schematic Drawing {S034-014C}, Expansion System, June 2016",
year = "2016",
}
@misc{uqusg,
author = {{Uniquip Australia Pty Ltd}},
title = {Unfired Steam Generator information},
year = "2016",
}
@misc{uts,
author = {{Universal Technical Services}},
title = "{TK} Solver computer program",
url = "http://www.uts.com",
note = "(accessed May 14, 2016)",
}
@misc{360water,
author = {{360 Water Pty Ltd}},
title = "Reliable Solutions for Water Problems",
url = "www.360water.com.au",
note = "(accessed November 22 2016)",
}
@manual{wbs340362,
title = "Characteristic Curves for the valve range 340/342/346/347, {P11}",
Author = {{Balz und Sohn}},
address= "Heilbronn, Germany",
year = "2003",
}
@misc{zph,
author = {{Cibs Journal}},
title = "Zero Pressure Header Circuits",
note = "Technical guide to low loss headers",
year = "2023",
}
\end{filecontents}
\usepackage{xurl} % allow linebreaks in URL strings at arbitrary locations
\usepackage[numbers]{natbib} % create numeric-style citation call-outs
\bibliographystyle{plainnat}
\begin{document}
\nocite{*}
\bibliography{test}
\end{document}
```
| 3 | https://tex.stackexchange.com/users/5001 | 684235 | 317,431 |
https://tex.stackexchange.com/questions/684246 | 0 | Actually I already found an answer to the [center text left/middle/right-problem](https://tex.stackexchange.com/questions/55472/how-to-make-text-aligned-left-center-right-in-the-same-line/593633#593633):
The big question is how to add a filling rule between the text parts. I tried the following, facing the problem that the rule overlaps with the text:
```
\noindent \Large \makebox[0pt][l]{Number}%
\makebox[\textwidth][c]{\hrulefill Title \hrulefill}%
\makebox[0pt][r]{}
```
How to fix it properly ?
| https://tex.stackexchange.com/users/216987 | How to center a part of a text but not the text left or right from it - with a rule | true | Two approaches:
Compute the alignment explicitly
--------------------------------
```
{\Large \setbox0=\hbox{Title}
\setbox1=\hbox{Number}
\dimen0=\hsize \advance\dimen0 by-\wd0
\divide\dimen0 by 2
\dimen1=\dimen0 \advance\dimen1 by-\wd1
\hbox to\hsize{\box1\leaders\hrule\hskip\dimen1 plus1fil
\box0\leaders\hrule\hskip\dimen0plus 1fil}}
```
In order to overcome rounding errors, the leaders are made stretchable by adding `plus 1fil`.
Employ TeX's typesetting algorithm (preferred)
----------------------------------------------
Give the first rulefill (between `Number` and `Title`) a minimum width of zero, plus 1fill of stretchability. But let the second rulefill (after `Title`) be at least as wide as the text `Number`, again plus 1fill of stretchability. Then TeX uses the same amount of stretchability for both rulefills, but adds the minimum width to the second rulefill, making it wider by the width of `Number`, exactly what is desired.
```
\hbox to\hsize{\Large
\setbox0=\hbox{Number}\dimen0=\wd0
\box0 \leaders\hrule\hfill
Title\leaders\hrule\hskip\dimen0 plus 1fill}
```
| 1 | https://tex.stackexchange.com/users/255231 | 684257 | 317,439 |
https://tex.stackexchange.com/questions/684258 | 0 | I am trying to set titles in bibliography and citations in upper case format (and I will be satisfied also for a solution only referred to bibliography).
```
\documentclass{article}
\usepackage{graphicx}
\usepackage{biblatex}
\DeclareFieldFormat{title}{\MakeUppercase{#1}}
\addbibresource{cited.bib}
\title{Just a joke}
\author{Francesco Contini}
\date{April 2023}
\begin{document}
\maketitle
\section{Introduction}
We can argue that Milan is a bad city \cite[27--59]{contini2012}.
\printbibliography
\end{document}
```
But, it doesn’t work.
This is my my cited.bib file:
```
@book{contini2012, author={Contini, Francesco},title={Milano e le vanità},subtitle={Misteri e scheletri della città della moda},publisher={Viva Roma Editore},address={Roma},year={2012}}
```
Of course I’d like subtitles to observe the same rules as titles.
| https://tex.stackexchange.com/users/236280 | How to set uppercase title of bib-items with BibLaTeX? | true | Since you want to change the casing of the title, you redefine the special `titlecase` field format.
Casing commands are special and usually very sensitive with respect to the input they are fed, so they do not always work in all situations. In this case they don't work as expected when used for the `title` field format.
```
\documentclass{article}
\usepackage{biblatex}
\DeclareFieldFormat{titlecase}{\MakeUppercase{#1}}
\begin{filecontents}{\jobname.bib}
@book{contini2012,
author = {Contini, Francesco},
title = {Milano e le vanità},
subtitle = {Misteri e scheletri della città della moda},
publisher = {Viva Roma Editore},
address = {Roma},
year = {2012},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
We can argue that Milan is a bad city \cite[27--59]{contini2012}.
\printbibliography
\end{document}
```
| 1 | https://tex.stackexchange.com/users/35864 | 684263 | 317,440 |
https://tex.stackexchange.com/questions/684190 | 1 | Based on [Biblatex: Two bibliographies with different styles and sortings](https://tex.stackexchange.com/questions/299064/biblatex-two-bibliographies-with-different-styles-and-sortings), I have the following MWE.
```
\documentclass{article}
%%% To use with the \DeclareFieldFormat and \defbibenvironment below:
% \usepackage[backend=biber, style=alphabetic, labelnumber, defernumbers=true]{biblatex}
\usepackage[backend=biber, style=authoryear, sorting=none, natbib=true, backref]{biblatex}
% Append keywords to identify different bibliography entries.
% appendstrict only appends if the field is nonempty,
% we use that to add a comma to avoid mushing together two keywords
\DeclareSourcemap{
\maps[datatype=bibtex, overwrite]{
\map{
\perdatasource{Referenzen_academic.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=primary, append]
}
\map{
\perdatasource{Referenzen_popular.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=secondary, append]
}
}
}
\begin{filecontents}{Referenzen_academic.bib}
@BOOK{BookA03,
author = {Author Aaa},
title = {Some Title},
publisher = {Some Publisher},
year = 2003,
% keywords = {hello},
}
@BOOK{BookB02,
author = {Author Bbb},
title = {Some Title},
publisher = {Some Publisher},
year = 2002,
}
\end{filecontents}
\begin{filecontents}{Referenzen_popular.bib}
@MISC{LinkC04,
author = {Author Ccc},
title = {Some Title},
year = 2004,
url = {www.test1.com/bild.jpg},
% keywords = {bye},
}
@MISC{LinkD01,
author = {Author Ddd},
title = {Some Title},
year = 2001,
url = {www.test2.com/bild.jpg},
}
\end{filecontents}
\addbibresource{Referenzen_academic.bib}
\addbibresource{Referenzen_popular.bib}
\usepackage{hyperref}
\begin{document}
The first two citations \cite{LinkD01} and \cite{BookB02}.
The others are \cite{LinkC04} and \cite{BookA03}.
\printbibliography[title=Bibliography (academic), keyword=primary]
\newrefcontext[sorting=none]
% \printbibliography[env=bibliographyNUM, title=References, keyword=secondary, resetnumbers]
\printbibliography[title=Bibliography (conventional), keyword=secondary]
\end{document}
```
I have two different bibliography files. I would like that the bibliographies themselves are the same (as shown). But, I would like that the citing for each are different. Namely, I would like that the citings in the main body of text for the second article contain author and title instead of author and year. How can I do this?
| https://tex.stackexchange.com/users/49283 | Citation as author-title instead of author-year; but only for references from a certain file | false | I managed to answer my question with the following code
```
\documentclass{article}
\usepackage[backend=biber, style=authoryear, sorting=none, natbib=true, backref]{biblatex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Automatically adding keywords, depending on the file origin
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Append keywords to identify different bibliography entries.
% appendstrict only appends if the field is nonempty,
% we use that to add a comma to avoid mushing together two keywords
\DeclareSourcemap{
\maps[datatype=bibtex, overwrite]{
\map{
\perdatasource{Referenzen_academic.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=primary, append]
}
\map{
\perdatasource{Referenzen_popular.bib}
\step[fieldset=KEYWORDS, fieldvalue={, }, appendstrict]
\step[fieldset=KEYWORDS, fieldvalue=secondary, append]
}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Create or Customize cite commands
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Here we redefine cite and parencite:
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\ifkeyword{secondary}{%
\bibhyperref{\printfield{labeltitle}\setunit{\addcomma\addspace}\printnames{labelname}}%
}{%
\usebibmacro{cite}%
}%
}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\parencite}
{\bibopenparen\usebibmacro{prenote}}
{\ifkeyword{secondary}{%
\bibhyperref{\printfield[citetitle]{labeltitle}\setunit{\addcomma\addspace}\printnames{labelname}}%
}{%
\usebibmacro{cite}%
}%
}
{\multicitedelim}
{\usebibmacro{postnote}\bibcloseparen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Produce and add the bib files
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{filecontents}{Referenzen_academic.bib}
@BOOK{BookA03,
author = {FirstnameXA FamilyXA},
title = {Some Title XA},
publisher = {Some Publisher XA},
year = 2003,
keywords = {hello},
}
@BOOK{BookB02,
author = {FirstnameXB FamilyXB},
title = {Some Title XB},
publisher = {Some Publisher XB},
year = 2002,
keywords = {wiki}
}
\end{filecontents}
\begin{filecontents}{Referenzen_popular.bib}
@MISC{LinkC04,
author = {FirstnameYC FamilyYC},
title = {Some Title YC},
year = 2004,
url = {www.test1.com/bild.jpg},
keywords = {bye},
}
@MISC{LinkD01,
author = {FirstnameYD FamilyYD},
title = {Some Title YD},
year = 2001,
url = {www.test2.com/bild.jpg},
keywords = {wiki}
}
\end{filecontents}
\addbibresource{Referenzen_academic.bib}
\addbibresource{Referenzen_popular.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% use other packages
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Document
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
The first two citations \cite{LinkD01} and \cite{BookB02}.
The others are \cite{LinkC04} and \cite{BookA03}.
\cite{LinkD01}
\parencite{BookB02}
\parencite{LinkD01}
\printbibliography[title=Bibliography (academic), keyword=primary]
\printbibliography[title=Bibliography (conventional), keyword=secondary]
\end{document}
```
this includes the following tricks:
* we add respective keywords based on the file the reference comes from
* we check for keywords to change the citation command
* if the respective keywords are not changed, we keep the original command
| 1 | https://tex.stackexchange.com/users/49283 | 684270 | 317,445 |
https://tex.stackexchange.com/questions/223149 | 33 | When there are only floats on page, I get the following message: "warning: Text page X contains only floats.". I'd like to suppress this warning. I know that I could use `p` parameter: `\begin{table}[!htp]`, but I still want the whole page to be handled like normal text page, not like page of floats. Any ideas?
| https://tex.stackexchange.com/users/56851 | “warning: Text page X contains only floats.” How to suppress this warning? | false | (Not enough reputation to comment.) I just had the same problem, and removing the location specifiers (e.g. [!tb]) solved the issue for me.
Using `\clearpage` as mentioned in other answers resulted in a large undesired white space.
| 3 | https://tex.stackexchange.com/users/209673 | 684271 | 317,446 |
https://tex.stackexchange.com/questions/684275 | 2 | I would like to append an `\item` to *nested* enumerate environments. The following example almost does what I want, but it also appends an `\item` to non-nested enumerates:
```
\documentclass{article}
\AtEndEnvironment{enumerate}{\item None of the above.}
\begin{document}
\begin{enumerate}
\item 2 + 2 =
\begin{enumerate}
\item 1
\item 2
\item 3
\item 4
\end{enumerate}
\item 2 - 2 + 5 =
\begin{enumerate}
\item 1
\item 2
\item 3
\item 4
\end{enumerate}
\end{enumerate}
\end{document}
```
That is, it (understandably) creates in the output "3. None of the above", which I do not want.
I do not want a solution that relies on enumitem. And I do not want a solution that defines a new environment (unless the solution subsequently overwrites `enumerate`) because I want to use `\begin{enumerate}`, `\end{enumerate}`.
| https://tex.stackexchange.com/users/12212 | Append an \item to nested enumerate | true | The nesting depth of a list is stored in `\@listdepth` so you can test for it:
```
\AtEndEnvironment{enumerate}{\ifnum \@listdepth>1 \item None of the above.\fi}
```
| 4 | https://tex.stackexchange.com/users/2388 | 684279 | 317,448 |
https://tex.stackexchange.com/questions/684273 | 4 | I would like to know if one token argument can be stretched by `\big`, `\left` and co.
Is there an easy way to test that a token is a maths delimiter, before starting to produce some output?
| https://tex.stackexchange.com/users/6880 | How to know if a token is a maths delimiter? | true | It's a character token with non zero delcode or a macro starting `\delimiter` (or `\U...` variants for luatex or xetex, which are left as an exercise for the reader)
```
\documentclass{article}
\makeatletter
\def\bigifdelim#1{%
\expandafter\def\expandafter\tmp\expandafter{\romannumeral-`x#1\relax}%
\edef\tmp{\expandafter\@car\tmp\@nil}%
\ifcat\relax\tmp
\expandafter\ifx\expandafter\delimiter\tmp
\Bigg#1_{\mathrm{big}}%
\else
#1_{\mathrm{small}}%
\fi
\else
\ifnum\delcode\expandafter`\tmp>\z@
\Bigg#1_{\mathrm{big}}%
\else
#1_{\mathrm{small}}%
\fi
\fi
}
\makeatother
\begin{document}
$
%
\bigifdelim x
%
\bigifdelim (
%
\bigifdelim \lbrace
%
\bigifdelim \cos
%
$
\end{document}
```
| 7 | https://tex.stackexchange.com/users/1090 | 684280 | 317,449 |
https://tex.stackexchange.com/questions/658919 | 1 | I am currently writing my thesis, and I created a list of acronyms at the end of my manuscript with the glossary package :
```
\usepackage[acronym,toc,shortcuts]{glossaries}
...
\printglossary[type=\acronymtype,title=List of Acronyms, toctitle=List of Acronyms]
```
At some point, I want to refer to the *Bidirectional and Unidirectional Long Short Term Memory* algorithms:
```
\newacronym{LSTM}{LSTM}{Long Short Term Memory}
\newacronym{B-LSTM}{B-LSTM}{Bidirectional LSTM}
\newacronym{U-LSTM}{U-LSTM}{Unidirectional LSTM}
```
But to make it in a shorter way, I want to display it like that: *U- and B-LSTM*: `(U- and \acrshort{B-LSTM})`
Is there a way to use the `U-LSTM` acronym by printing just `U-` instead and still have it fully in the acronym list?
| https://tex.stackexchange.com/users/140385 | Glossary acronym using a different way to display an entry | false | The mear-minimal example below works for me:
```
\documentclass[a4paper,12pt]{report}
\usepackage[pdftex, colorlinks]{hyperref}
\usepackage[hyperfirst = false, acronym]{glossaries}
\makeglossaries{}
\newacronym{LSTM}{LSTM}{Long Short Term Memory}
\newacronym{B-LSTM}{B-LSTM}{Bidirectional LSTM}
\newacronym{U-LSTM}{U-LSTM}{Unidirectional LSTM}
\begin{document}
\chapter{Introduction}
Here, I'm referring to \glslink{U-LSTM}{U-} and \acrshort{B-LSTM}.
\printglossary[type=\acronymtype,title=List of Acronyms]
\end{document}
```
As noted by @likethevegetable, using sub-entries (like in [this question](https://tex.stackexchange.com/questions/520829/glossary-list-of-acronyms-with-sub-categories); also section 4.5 of the userguide) may be more appropriate. Something like:
```
...
\usepackage[hyperfirst = false, acronym, style=tree]{glossaries}
\makeglossaries{}
\newacronym{LSTM}{LSTM}{Long Short Term Memory}
\newacronym[parent=LSTM]{B-LSTM}{B-LSTM}{Bidirectional \glstext{LSTM}}
\newacronym[parent=LSTM]{U-LSTM}{U-LSTM}{Unidirectional \glstext{LSTM}}
...
This is about \gls{LSTM}. Here, I'm referring to \glslink{U-LSTM}{U-} and \acrshort{B-LSTM}.
...
```
| 0 | https://tex.stackexchange.com/users/255159 | 684281 | 317,450 |
https://tex.stackexchange.com/questions/684289 | 1 | I am trying to learn latex3 to write more powerful LaTeX functions.
For that I am implementing a `timesum` variable that contains the time in minutes. You can add to that sum either hours days or minutes. That works great.
Now I try to output `timesum` split into days hours and minutes.
However, not even finding out the full days in the sum works and instead breaks with `Missing number, treated as zero`.
I do not understand why...
```
\documentclass{scrlttr2}
\renewcommand\familydefault{\sfdefault}
\usepackage[defaultsans, scale=0.9]{opensans}
\ExplSyntaxOn
\fp_new:N \timesum
\NewDocumentCommand{\addtime}{O{\timesum}mm}
{
\str_case_e:nnF { #3 } {
{h}{\fp_add:Nn #1 {\fp_eval:n {#2 * 60}}}
{d}{\fp_add:Nn #1 {\fp_eval:n {#2 * 60 * 24}}}
}
{ \fp_add:Nn #1 {#2} } % default
#2\,#3
}
\NewDocumentCommand{\showtimesum}{O{\timesum}m}{
\str_case_e:nnF { #2 } {
{h}{\fp_eval:n { #1 / 60}\,h}
{d}{\fp_eval:n {#1 / 60 / 24}\,d}
{min}{\fp_use:N #1 \,min}
}
{ \fp_use:N #1 \,min} % default
}
%\int_incr:N
\NewDocumentCommand{\strtime}{O{\timesum}}{
\fp_new:N \l_fp_tmp_timemin % new var
\fp_set_eq:NN \l_fp_tmp_timemin #1 % set var to value of #1
%\fp_use:N \l_fp_tmp_timemin % print var
% find out days iteratively
\int_do_while:nNnn {\l_fp_tmp_timemin} {>} {1439.999} {
\fp_sub:Nn \l_fp_tmp_timemin {1440}
%\fp_use:N \l_fp_tmp_timemin
}
}
\ExplSyntaxOff
\begin{document}
\begin{letter}{recipient}
\opening{opening}
\addtime{20.5}{h}
\addtime{30}{min}
\addtime{2.7}{d}
\showtimesum{h}
\strtime
%\showsum
\closing{concluding text}
\end{letter}
\end{document}
```
| https://tex.stackexchange.com/users/281557 | While loop leads to `Missing number, treated to zero` with latex3 | true | You can certainly store the time sum in minutes in an `fp` variable,
but for printing the total time, you want to round to an integer.
```
\documentclass{article}
\ExplSyntaxOn
\NewDocumentCommand{\newtime}{m}
{
\fp_new:c { l_mrcarnivore_time_#1_fp }
}
\newtime{default} % initialize one
% \addtime* will also show the added time
\NewDocumentCommand{\addtime}{sO{default}mm}
{
\mrcarnivore_time_add:nnn { #2 } { #3 } { #4 }
% with \addtime* also show what's been added
\IfBooleanT{#1}{#3\,\textup{#4}}
}
\NewDocumentCommand{\strtime}{O{default}}
{
\mrcarnivore_time_str:n { #1 }
}
\int_new:N \l__mrcarnivore_time_days_int
\int_new:N \l__mrcarnivore_time_hours_int
\int_new:N \l__mrcarnivore_time_minutes_int
\cs_new_protected:Nn \mrcarnivore_time_add:nnn
{
\str_case:nnF { #3 }
{
{h}{ \fp_add:cn { l_mrcarnivore_time_#1_fp } { #2 * 60 } }
{d}{ \fp_add:cn { l_mrcarnivore_time_#1_fp } { #2 * 60 * 24 } }
{min}{ \fp_add:cn { l_mrcarnivore_time_#1_fp } { #2 } }
}
{\ERROR}
}
\cs_new_protected:Nn \mrcarnivore_time_str:n
{
% round to an integral number of minutes
\int_set:Nn \l__mrcarnivore_time_minutes_int
{
\fp_eval:n { round( \fp_use:c { l_mrcarnivore_time_#1_fp }, 0 ) }
}
% compute the number of days
\int_set:Nn \l__mrcarnivore_time_days_int
{
\int_div_truncate:nn { \l__mrcarnivore_time_minutes_int } { 1440 }
}
% remove the days
\int_set:Nn \l__mrcarnivore_time_minutes_int
{
\int_mod:nn { \l__mrcarnivore_time_minutes_int } { 1440 }
}
% compute the number of hours
\int_set:Nn \l__mrcarnivore_time_hours_int
{
\int_div_truncate:nn { \l__mrcarnivore_time_minutes_int } { 60 }
}
% remove the hours
\int_set:Nn \l__mrcarnivore_time_minutes_int
{
\int_mod:nn { \l__mrcarnivore_time_minutes_int } { 60 }
}
% now print the days
\int_compare:nT { \l__mrcarnivore_time_days_int > 0 }
{
\int_eval:n { \l__mrcarnivore_time_days_int }\,\textup{d}\;
}
% now print the hours
\int_compare:nTF { \l__mrcarnivore_time_hours_int > 0 }
{
\int_eval:n { \l__mrcarnivore_time_hours_int }\,\textup{h}
}
{% no hours
\unkern
}
\;
% now print the minutes
\int_compare:nTF { \l__mrcarnivore_time_minutes_int > 0 }
{
\int_eval:n { \l__mrcarnivore_time_minutes_int }\,\textup{min}
}
{% no minutes
\unkern
}
}
\ExplSyntaxOff
\begin{document}
\addtime{20.5}{h}
\strtime
\addtime{30}{min}
\strtime
\addtime{2.7}{d}
\strtime
\end{document}
```
What does `\unkern` do? Suppose the final answer should be “two days and eight minutes”.
The code will add a thin space `\,` between 2 and d, and also a med space `\;` after it. What happens is that if there are no hours to show, this med space would stay and accumulate with the med space issued after hours. Similarly when there are zero minutes.
| 1 | https://tex.stackexchange.com/users/4427 | 684299 | 317,459 |
https://tex.stackexchange.com/questions/684295 | 0 | I want abbreviations to be written using the `\mathsf` font. For this, I created a command `\mystyle`. I would like these abbreviations to be emphasised in emphasised environments automatically. Is there a way to achieve this?
The naive method presented in the MWE below does not work.
```
\documentclass{article}
\newcommand{\mystyle}[1]{$\mathsf{#1}$}
\begin{document}
If I write outside of an environment, all is fine, and \mystyle{ABC} is typeset the way it should
\emph{If I am in an emphasized environment, I want \mystyle{ABC} to be emphasized as well}
\end{document}
```
| https://tex.stackexchange.com/users/295779 | Emphasise font automatically | true | You want a text font, not math.
```
\documentclass{article}
\newcommand{\mystyle}[1]{\textsf{#1}}
\begin{document}
If I write outside of an environment, all is fine, and \mystyle{ABC} is typeset the way it should
\emph{If I am in an emphasized environment, I want \mystyle{ABC} to be emphasized as well}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/1090 | 684301 | 317,461 |
https://tex.stackexchange.com/questions/301052 | 2 | I have an easy question. I want to draw the tangents from origin to a circle with center at e.g. (0,2) and radius 1.5. Here the code of the circle:
```
\begin{tikzpicture}
\draw[->] (0,-.5) -- (3,-.5) node[right] {$x$};
\draw[->] (0,-.5) -- (0,2) node[above] {$y$};
\draw (0,2) circle (1.5);
\end{tikzpicture}
```
I need a simple solution, because I'm not good at drawing with `tikz`.
Thanks!
| https://tex.stackexchange.com/users/101464 | Drawing a tangent from a point outside of a circle to it! | false | I think tkz-euclide is a great tool, however it is still unstable which is problematic if you write some code and then reuse it a few years later. The answer has to be modulated depending which version you are using:
* for version 1.16 (answer given): `\tkzTangent[from ...]`
* for version 3.06: `\tkzDefTangent[from = ...]`
* for version 4.2: `\tkzDefLine[tangent from = ...]`
The problem is to know exactly which version you are using if you use a Latex package linked either to Overleaf or a Linux distribution (in my case Mint).
* My Latex package is updated by the distribution, it is very convenient but it is not always the latest version. Moreover Mint is Debian based, so installing and updating the *TexLive.Iso* is not easy, even discouraged.
* You may get a wrong drawing without any diagnostic! Just check the following MWE:
```
\documentclass{article}
\usepackage{tikz}
\usepackage{tkz-fct}
\usepackage{tkz-euclide}
\usepackage[active,tightpage]{preview}
\begin{document}
\PreviewEnvironment{tikzpicture} .
\setlength\PreviewBorder{5pt}
\begin{tikzpicture}
\clip (-5,-4.5) rectangle (8.5,4);
\def \Xa{0}
\def \Ya{0}
\def \Xid{2*sqrt(3) + 2*sqrt(2)}
\def \Yid{2}
\def \rd{2}
\def \Xtab{2*sqrt(3) + 2*sqrt(2)}
\def \Ytab{0}
\def \Xtbc{2*sqrt(2) + 8*sqrt(3)/3}
\def \Ytbc{2*sqrt(6)/3 + 2}
\def \Xap{-2*sqrt(3) - 2*sqrt(2)}
\def \Yap{-sqrt(6) - 2}
\coordinate (Ap) at ({\Xap},{\Yap});
\coordinate (A) at ({\Xa},{\Ya});
\coordinate (I) at ({ \Xid },{\Yid });
\coordinate (K) at ({ \Xtbc },{ \Ytbc });
\coordinate (M) at ({ \Xtab },{\Ytab });
\tkzDrawCircle[blue](I,K);
%%% from manual tkz-euclide tool for Euclidean Geometry V3.06c p94
\tkzDefTangent[from = Ap](I,M) \tkzGetPoints{R}{Q};
\tkzDrawSegment[green](Ap,R);
%%% from manual tkz-euclide Euclidean Geometry V4.2c p43
\tkzDefLine[tangent from = Ap](I,M) \tkzGetPoints{Rp}{Qp}
\tkzDrawSegment[red](Ap,Rp);
\end{tikzpicture}
\end{document}
```
You will get a perfect compilation and the following result, no warnings!
In my case the version 3.06 gives a correct result, not the most up to date version 4.2...
| 0 | https://tex.stackexchange.com/users/13908 | 684304 | 317,463 |
https://tex.stackexchange.com/questions/8423 | 85 | I can't seem to center equations without causing some weird formatting problem. The following results in the R being dropped:
```
\begin{center}
E(R_{i,t})=E(\alpha_i)+E(\beta_{i,F_1 } F_{1,t})+E(\beta_{i,F_2 } F_{2,t})+\ldots+E(\beta_{i,F_m } F_{m,t})\linebreak
\bar{R}_{i,t}=a+\hat{\beta}_{i,F_1 } E(F_{1,t})+\hat{\beta}_{i,F_2 } E(F_{2,t})+\ldots+\hat{\beta}_{i,F_m } E(F_{m,t})\linebreak
\bar{R}_{i,t}=a+\gamma_1\hat{\beta}_{i,F_1 } +\gamma_2\hat{\beta}_{i,F_2 } F_{2,t}+\ldots+\gamma_m\hat{\beta}_{i,F_m }
\end{center}
```
Any ideas? Is {center} the wrong thing to use?
| https://tex.stackexchange.com/users/nan | How do you center equations? | false | The most simple way to center math is the use of backslash and square brakets
`\[ k* {{n}\choose{k}} = n*{{n-1}\choose{k-1}}\]`
| -1 | https://tex.stackexchange.com/users/140610 | 684311 | 317,466 |
https://tex.stackexchange.com/questions/684324 | -1 | I want have a set of lectures prepared and want to add a common slide at the end of each lecture. I have done this with \AtEndDocument, but then it only puts it at the end of the final lecture (as it should), so am looking for something like \AtEndLecture, but that command seems to not exist. How can I do this?
| https://tex.stackexchange.com/users/296029 | Slide at the end of each lecture | true | There is not really an end of a lecture, it implicitly ends when a new one starts.
So instead of adding your frame to the end, I would add before a new lecture starts:
```
\documentclass{beamer}
\pretocmd{\lecture}{%
\ifnum\thelecture>0
\begin{frame}
End of the lecture
\end{frame}
\fi
}{}{}
\AtEndDocument{
\begin{frame}
End of the lecture
\end{frame}
}
\begin{document}
\lecture{lec1}{lec1}
\begin{frame}
abc
\end{frame}
\lecture{lec2}{lec2}
\begin{frame}
abc
\end{frame}
\end{document}
```
| 0 | https://tex.stackexchange.com/users/36296 | 684326 | 317,470 |
https://tex.stackexchange.com/questions/684320 | 5 | I am trying to use `XyMTeX` for typesetting a variety of chemical reactions and keep getting errors, namely with
* \ChemEquation
* \LewisSbond
* \LewistetrahedralA or B
* electron shift arrows and
* Reaction schemes.
I have noticed that it doesn't handle white space well, at all.
For example:
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{xymtexpdf}
\usepackage{xcolor}
\usepackage{graphicx}
\begin{document}
\LewisTetrahedralA{0==C;1==A;2==B;3==X;4==Y}
\end{document
```
I either get errors in the code or crazy typesetting where things are very strangely aligned.
Common errors include
* You can't use `\prevdepth' in horizontal mode.
* Missing $ inserted.
* Missing number, treated as zero.
* Illegal unit of measure (pt inserted).
* Extra }, or forgotten $.
| https://tex.stackexchange.com/users/107583 | Is XyMTeX still working for people? | false | The file `lewisstruc.sty` uses `\smash` in the assumption (no longer valid) that `\smash` doesn't initiate horizontal mode.
Simple fix:
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{xymtexpdf}
\usepackage{xcolor}
\usepackage{graphicx}
% fix the issue with \smash
\def\dotnodimension{\hbox{\smash{\hbox to0pt{\hss.\hss}}}}
%%%
\begin{document}
\LewisTetrahedralA{0==C;1==A;2==B;3==X;4==Y}
\end{document}
```
| 6 | https://tex.stackexchange.com/users/4427 | 684329 | 317,472 |
https://tex.stackexchange.com/questions/684334 | 0 | I'm referring to [this icon](https://emojipedia.org/spoon/): .
Can I render it in `LaTeX`?
Solutions other than via emoji are also accepted. The [`tikzsymbol` package](https://ctan.math.washington.edu/tex-archive/graphics/pgf/contrib/tikzsymbols/tikzsymbols.pdf), though, which I've discovered [here](https://tex.stackexchange.com/a/227226/87996), doesn't seem to have a spoon. And for now I'm a bit lazy to draw my own spoon with Ti*k*Z.
| https://tex.stackexchange.com/users/87996 | How can I render a spoon emoji (e.g. U+1F944)? | false |
```
\documentclass{article}
\usepackage{twemojis}
\begin{document}
\twemoji{spoon}
\end{document}
```
---
Segoe UI Emoji is installed in Windows. You can also use other emoji fonts.
```
\documentclass{article}
\usepackage{fontspec}
\begin{document}
{\fontspec{Segoe UI Emoji}\symbol{"1F944}}
\end{document}
```
| 3 | https://tex.stackexchange.com/users/238422 | 684336 | 317,474 |
https://tex.stackexchange.com/questions/684334 | 0 | I'm referring to [this icon](https://emojipedia.org/spoon/): .
Can I render it in `LaTeX`?
Solutions other than via emoji are also accepted. The [`tikzsymbol` package](https://ctan.math.washington.edu/tex-archive/graphics/pgf/contrib/tikzsymbols/tikzsymbols.pdf), though, which I've discovered [here](https://tex.stackexchange.com/a/227226/87996), doesn't seem to have a spoon. And for now I'm a bit lazy to draw my own spoon with Ti*k*Z.
| https://tex.stackexchange.com/users/87996 | How can I render a spoon emoji (e.g. U+1F944)? | false |
```
\documentclass{article}
\usepackage{cookingsymbols}
\begin{document}
\Spoon
\end{document}
```
```
\documentclass{article}
\usepackage{fontawesome}
\usepackage{graphicx}
\usepackage{xcolor}
\begin{document}
\rotatebox[origin=c]{270}{\textcolor{lightgray}{\faSpoon}}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/117876 | 684337 | 317,475 |
https://tex.stackexchange.com/questions/11182 | 9 | Having used psTricks for years, I'd though I'd drag myself into the modern era and start using TikZ. So far, I like it very much. However, the only manual I can find is the 500+ page PDF manual, which although comprehensive, detailed and thorough, is not always easy to find things in. Is there an online, HTML or similar, fully searchable version of the manual?
Thanks,
Alasdair
| https://tex.stackexchange.com/users/3628 | Online searchable manual for TikZ? | false | This is an unofficial HTML version of the documentation of tikz and pgfplots maintained by Dominik Peters (produced using the [lwarp](https://ctan.org/pkg/lwarp?lang=en) package):
* tikz: <https://tikz.dev/>
* pgfplots: <https://tikz.dev/pgfplots/>
| 3 | https://tex.stackexchange.com/users/82748 | 684338 | 317,476 |
https://tex.stackexchange.com/questions/684291 | 1 | I have an enumerate of questions. Each of those questions has some opening text and then a nested enumerate. I give an example below that results in a page-break in the middle of the second question in the PDF output. I mark with `\newpage` where I would like the page-break to be (automatically) inserted. In this particular example, I want the first question to be on page 1, and the second and third to be on page 2 (just because they both happen to fit).
I also put my attempt commented out in below. I try to start a "samepage" environment right at the beginning of an `\item` and I try to end it at the end of the (nested) enumerate environment. The code seems to work on a simpler example, but in the current example it fails with the error `! LaTeX Error: \begin{samepage} on input line 56 ended by \end{center}.` In any case, my approach seemed fragile anyway so I'm hoping there's a better solution.
I think the reason I find this hard is because of the way `\item` works. If it were `\item{contents}` then I think it would be easier to patch. That's why I tried to hack together an approach that hooks into the beginning of `\item` and end of `\enumerate`.
I'm looking for a solution that can patch `\item` and base `enumerate` (rather than using `\newitem` or enumitem). i.e., I'm hoping that I can just drop some preamble code in.
There are related questions. For example, [Page breaks within enumerated list](https://tex.stackexchange.com/questions/76483/page-breaks-within-enumerated-list) is related but is not about nested enumerates and also the solution seems to use enumitem.
```
\documentclass{article}
\makeatletter
%% my attempt:
%\let\OldItem\item
%\renewcommand{\item}{\OldItem \ifnum \@listdepth=1 \begin{samepage}\fi}
%\AfterEndEnvironment{enumerate}{\ifnum \@listdepth=1 \end{samepage}\fi}
\makeatother
\begin{document}
\begin{enumerate}
\item 2 + 2 = ? \\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
\begin{enumerate}
\item 1
\item 2
\item 3
\item 4
\end{enumerate}
% I do not want to put this page break in manually:
% \newpage
\item Consider the joint probability distribution below:
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
\begin{center}
\begin{tabular}{|ccc|}
\hline
&
$X_{2}=0$ &
$X_{2}=1$\tabularnewline
\hline
$X_{1}=0$ &
$\frac{1}{10}$ &
$\frac{3}{10}$\tabularnewline
\hline
$X_{1}=1$ &
$\frac{2}{10}$ &
$\frac{4}{10}$\tabularnewline
\hline
\end{tabular}
\par\end{center}
What is $P(X_{1}=1)$?
\begin{enumerate}
\item I do not know.
\item 4
\item 17
\item 88
\end{enumerate}
\item 2 - 2 + 5 =
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
filler\\
\begin{enumerate}
\item 1
\item 2
\item 3
\item 4
\end{enumerate}
\end{enumerate}
\end{document}
```
| https://tex.stackexchange.com/users/12212 | Prevent page break within \item of an enumerate | false | `\def` once, `\let` many times.
```
\documentclass{article}
\usepackage{blindtext}% MWE only
\usepackage{showframe}% alignment tool
\newcommand{\RepItem}[1]{\OldItem\parbox[t]{\linewidth}{#1}}
\AtBeginEnvironment{enumerate}{\let\OldItem=\item% in case enumerate changes \item first
\let\item=\RepItem
\addtolength{\itemsep}{0pt plus 1fil}}
% changes are local to enumerate, but could be passed to nested environments
\begin{document}
\begin{enumerate}
\item{\blindtext}
\item{\blindtext}
\item{\blindtext}
\item{\blindtext}
\item{\blindtext}
\end{enumerate}
\end{document}
```
| 3 | https://tex.stackexchange.com/users/34505 | 684340 | 317,478 |
https://tex.stackexchange.com/questions/684335 | 3 | This is follow up to a [previous question](https://tex.stackexchange.com/q/684330/213149) that has been closed because it was treated wrongly.
Brief recap: let `\newcommand{\foo}{foo}`. Having `\foo` in text like so
```
test \foo bar
```
will omit the space after `\foo` which will result in `test foobar`, while
```
test {\foo} bar
test {\foo}.
```
produces `test foo bar` and `test foo.` which is exactly what I need.
---
While it's not possible to brace a macro before it's being parsed, there is a way to make space an active character.
Here's the [solution](https://tex.stackexchange.com/a/235188/213149) by [egreg](https://tex.stackexchange.com/users/4427/egreg) that's close to what I'm looking for. However it uses an additional environment wrapper.
My question is how to apply the same technique of creating space active but only once, right after `\foo`? So that `\foo` takes one argument, parses it with respect to the spaces and puts `#1 foo` in the text maintaining the space if one was present.
| https://tex.stackexchange.com/users/213149 | Make only first space active | true | Here is one solution I can think of which uses just plain TeX.
```
\def\checkspace{\catcode`\ =12\relax\futurelet\csps\checkspaceA}
\def\checkspaceA{\catcode`\ =10\relax\if\space\csps\ \afterassignment\ignorespaces\expandafter\let\expandafter\csps\fi}
\def\foo{foo\checkspace}
test \foo bar
test foo bar
test \foo.
\bye
```
---
The idea is like so: `\checkspace` first makes spaces *other* so that they are not skipped and can be `\futurelet`'d.
Then we inspect the next token in `\checkspaceA` using `\futurelet`.
`\checkspaceA` makes spaces space tokens again, and if the token we are inspecting is a space, then a `\` is inserted.
The purpose of the rest of the code inside the conditional in `\checkspaceA` is to make sure that if `\checkspace` is followed by multiple spaces, all the spaces following the first are ignored.
First I will explain the issue (to my understanding) so I can better explain my solution.
If we were to remove this code from `\checkspaceA` and do the following test:
```
\def\checkspaceA{\catcode`\ =10\relax\if\space\csps\ \fi}
test \foo bar
```
Then we would get `test foo` followed by a space, then an *other* space character (which looks like a slanted dash in cmr), then `bar`.
The issue is that once we do `\futurelet\csps\checkspaceA` in `\checkspace`, the token following `\foo` is tokenized into an *other* space token, and left in the stream, and this is what creates the weird dash character.
So we can alter the code slightly to get rid of this:
```
\def\checkspaceA{\catcode`\ =10\relax\if\space\csps\ \expandafter\let\expandafter\csps\fi}
test \foo bar
```
But now the issue is that since there are two spaces following `\foo`, the first one is correctly converted into `\` by `\checkspaceA`.
But the next space token really followed an *other* token, and is therefore not ignored.
Doing `\afterassignment\ignorespaces` before the `\let` ensures that it is ignored.
---
This solution will not work for any character with catcode 10, and setting up the macros so that they work for other characters requires changing the catcodes of multiple characters and nesting `\if`s.
In general I don't really see a reason to for these macros, I think it may just be simpler to follow your macros with an empty group.
You almost certainly won't run into weird unintended side effects doing so.
I'm not 100% sure that my macros will always work, if there is an issue with them, feel free to tell me and I'd be happy to attempt to fix them.
| 3 | https://tex.stackexchange.com/users/287149 | 684341 | 317,479 |
https://tex.stackexchange.com/questions/684309 | 0 | If I use a float in the same page where I have the paracol environment, the floats get placed where it is irrespective from the argument. See my MWE. The float on page 1 should be at the bottom, like the one in page 2, but it stays at the top. Why? (If I comment out the paracol all goes well)
```
\documentclass{article}
\usepackage[]{lipsum}
\usepackage{paracol}
\begin{document}
\begin{figure}[b]
Some text that should go at the bottom.
\end{figure}
\columnratio{0.65}
\begin{paracol}{2}
\sloppy
\noindent
Some text in two columns.
\switchcolumn
\noindent
{\scriptsize Some more text in the second column.} \end{paracol}
\lipsum{1}
\begin{figure}[b]
Some text that should go at the bottom.
\end{figure}
\lipsum{1}
\end{document}
```
| https://tex.stackexchange.com/users/254618 | Paracol and floats placement | true | I took your footnote idea and bypsssed `\footnote` to write directly into `\footins`. The tricky bit was turning off `\footnoterule`.
```
\documentclass{article}
\usepackage{paracol}
\usepackage{lipsum}
\usepackage{afterpage}
\newsavebox{\Bfloat}
\let\OldFootnoterule=\footnoterule
\newlength{\OldFootnotesep}
\setlength{\OldFootnotesep}{\footnotesep}
\makeatletter
\newenvironment{Bfigure}{\begin{lrbox}{\Bfloat}%
\minipage{\textwidth}%
\def\@captype{figure}}%
{\endminipage%
\end{lrbox}%
\insert\footins{\noindent\usebox\Bfloat}%
\global\let\footnoterule\relax% will need global reset
\global\footnotesep=\textfloatsep}
\makeatother
\footnotelayout{m}
\begin{document}
\columnratio{0.55}
\begin{paracol}{2}
\sloppy
\begin{Bfigure}
\caption{A bottom float. \lipsum[1]}
\end{Bfigure}
\lipsum[1]
\switchcolumn\sloppy
{\footnotesize \lipsum[1]}
\end{paracol}
\afterpage{\global\let\footnoterule\OldFootnoterule
\global\footnotesep=\OldFootnotesep}%
\lipsum[1]
Test\footnote{a normal footnote}
\lipsum[2]
\end{document}
```
| 0 | https://tex.stackexchange.com/users/34505 | 684343 | 317,480 |
https://tex.stackexchange.com/questions/684352 | 2 | I'm writing a paper that have many expressions of the form
```
$$x^3 y^2 x^{-1} y x^2 y^5$$
```
Both the length and the exponents could change from one instance to another.
**Is it possible to create a macro, call it `\xy`, such that**
```
\xy{3,2,-1,1,2,5}
```
**would give the word above, and**
```
\xy{-1,7,4}
```
**would give**
```
$$x^{-1} y^7 x^4$$
```
Note:
* Every exponent is non-zero (otherwise we just combine the adjacent terms)
* It is okay to have two commands `\xyodd` and `\xyeven` depending on the parity of the length of the word
* It is okay to have two versions, one with the word starting with x, and another, with y
* If an exponent is 1, ideally it would just print the variable instead of e.g. `x^1`, but that's a minor issue.
* It is okay for the command to have two inputs, one for the length of the word, and another, for the list of exponents.
For example
```
\xynew{ 6, {3,2,-1,1,2,5} }
```
would give
```
$$x^3 y^2 x^{-1} y x^2 y^5$$
```
while
```
\xynew{ 3, {-1,7,4} }
```
would give
```
$$x^{-1} y^7 x^4$$
```
| https://tex.stackexchange.com/users/183182 | How to convert a sequence of integers into a monomial | true |
```
\documentclass{article}
% initialise variable to x and add a `\relax` marker for the end
\def\xy#1{\def\xya{x}\xxy#1,\relax,}
% grab one term
\def\xxy#1,{%
% if \relax, stop
\ifx\relax#1%
\else
% print the varable
\xya
% add superscript if not 1
\ifnum#1=1 \else^{#1}\fi
% flip definition between x and y
\edef\xya{\if\xya x y\else x\fi}%
% jump past closing \fi, and grab next item
\expandafter\xxy
\fi}
\begin{document}
\[
\xy{3,2,-1,1,2,5}
\]
\[
\xy{-1,7,4}
\]
\end{document}
```
| 6 | https://tex.stackexchange.com/users/1090 | 684354 | 317,484 |
https://tex.stackexchange.com/questions/11182 | 9 | Having used psTricks for years, I'd though I'd drag myself into the modern era and start using TikZ. So far, I like it very much. However, the only manual I can find is the 500+ page PDF manual, which although comprehensive, detailed and thorough, is not always easy to find things in. Is there an online, HTML or similar, fully searchable version of the manual?
Thanks,
Alasdair
| https://tex.stackexchange.com/users/3628 | Online searchable manual for TikZ? | false | Pour les francophones (in french)
<http://math.et.info.free.fr/TikZ/bdd/TikZ-Impatient.pdf>
| 1 | https://tex.stackexchange.com/users/5355 | 684358 | 317,486 |
https://tex.stackexchange.com/questions/678641 | 1 | Since a few days ago, on macOS Venture 13.2.1, if I open TeXShop and create a new file, I can't save it, whether I use cmd+s or the save option under File->Save. I can't rename or close the untitled file either, or close TeXShop. The only way I can close them is to force quit them, and when I re-open it, the unsaved files open as well. I need to go into Library-> Autosave Information and delete them from there to avoid it. I can still edit and save my existing files, and TeXShop closes fine if they are the only ones open.
| https://tex.stackexchange.com/users/292532 | Can't save newly created files, or close them or TeXShop once they are opened | true | Updating to a more recent version of TexShop like quark67 suggested solved my issue.
| 0 | https://tex.stackexchange.com/users/292532 | 684361 | 317,488 |
https://tex.stackexchange.com/questions/684363 | 1 | In **LaTeX** I sometimes see the command `\lhd`.
It ends up looking like a Greek letter delta.
>
> ⊲
> =
>
>
>
Usually, **LaTeX** commands are acronyms, initialisms, or abbreviations.
What is the fully spelled out English phrase for `\lhd`.
For example, `\dfrac` is an abbreviation of the English phrase `display fraction`.
| https://tex.stackexchange.com/users/178952 | If you had to write the command `\lhd` in English, what would it say? | true | that is from `latexsym`: `l` is "left" there are `r` "right" variants
```
%
% The commands defined by the \texttt{latexsym} package are:
% \begin{quote}\raggedright
% |\mho|~$\mho$ \quad
% |\Join|~$\Join$ \quad
% |\Box|~$\Box$ \quad
% |\Diamond|~$\Diamond$ \quad
% |\leadsto|~$\leadsto$ \quad
% |\sqsubset|~$\sqsubset$ \quad
% |\sqsupset|~$\sqsupset$ \quad
% |\lhd|~$\lhd$ \quad
% |\unlhd|~$\unlhd$ \quad
% |\rhd|~$\rhd$ \quad
% |\unrhd|~$\unrhd$
% \end{quote}
```
The font source says
```
% This character uses the rightward arrow arrowhead
% The width is the same as that of the regular arrow
% An extension character can be added for longer squiggles
cmchar "LASY \lhd triangle";
```
so `hd` is short for (arrow) HeaD
| 8 | https://tex.stackexchange.com/users/1090 | 684365 | 317,490 |
https://tex.stackexchange.com/questions/684363 | 1 | In **LaTeX** I sometimes see the command `\lhd`.
It ends up looking like a Greek letter delta.
>
> ⊲
> =
>
>
>
Usually, **LaTeX** commands are acronyms, initialisms, or abbreviations.
What is the fully spelled out English phrase for `\lhd`.
For example, `\dfrac` is an abbreviation of the English phrase `display fraction`.
| https://tex.stackexchange.com/users/178952 | If you had to write the command `\lhd` in English, what would it say? | false | `\lhd` stands for left-hand diamond according to: [tutorialspoint.com](https://www.tutorialspoint.com/tex_commands/lhd.htm)
| 3 | https://tex.stackexchange.com/users/281557 | 684366 | 317,491 |
https://tex.stackexchange.com/questions/684352 | 2 | I'm writing a paper that have many expressions of the form
```
$$x^3 y^2 x^{-1} y x^2 y^5$$
```
Both the length and the exponents could change from one instance to another.
**Is it possible to create a macro, call it `\xy`, such that**
```
\xy{3,2,-1,1,2,5}
```
**would give the word above, and**
```
\xy{-1,7,4}
```
**would give**
```
$$x^{-1} y^7 x^4$$
```
Note:
* Every exponent is non-zero (otherwise we just combine the adjacent terms)
* It is okay to have two commands `\xyodd` and `\xyeven` depending on the parity of the length of the word
* It is okay to have two versions, one with the word starting with x, and another, with y
* If an exponent is 1, ideally it would just print the variable instead of e.g. `x^1`, but that's a minor issue.
* It is okay for the command to have two inputs, one for the length of the word, and another, for the list of exponents.
For example
```
\xynew{ 6, {3,2,-1,1,2,5} }
```
would give
```
$$x^3 y^2 x^{-1} y x^2 y^5$$
```
while
```
\xynew{ 3, {-1,7,4} }
```
would give
```
$$x^{-1} y^7 x^4$$
```
| https://tex.stackexchange.com/users/183182 | How to convert a sequence of integers into a monomial | false | Just for fun...
Here is the API proposed.
```
\begin{document}
\section{Default use}
\[ \xy{1,2,3,4,5,6} \]
\[ \xy{3,2,1,1,2,3} \]
\[ \xy{-1,-2,-3} \]
\[ \xy{1,2} \]
\[ \xy{12345} \]
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12} \]
\section{Customized use}
\UnderflowSetUp{A,B,C}
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12} \]
\UnderflowSetUp{u,n,d,e,r,f,l,o,w}
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18} \]
\end{document}
```
Here is the complete code.
```
\documentclass{article}
\ExplSyntaxOn
\clist_new:N \g_flavour_var_names_clist
\int_new:N \g_flavour_vars_pos_MAX_int
\NewDocumentCommand{\UnderflowSetUp}{m}{
\clist_set:Nn \g_flavour_var_names_clist
{#1}
\int_set:Nn \g_flavour_vars_pos_MAX_int
{\clist_count:N \g_flavour_var_names_clist}
}
\UnderflowSetUp{x,y}
\int_new:N \l_flavour_expo_pos_int
\int_new:N \l_flavour_expo_pos_MAX_int
\NewDocumentCommand{\xy}{m}{
% CSV data.
\clist_set:Nn \l_tmpa_clist {#1}
% Let's iterate to do the job.
\int_set_eq:NN \l_flavour_expo_pos_int {1}
\int_set:Nn \l_flavour_expo_pos_MAX_int
{\clist_count:N \l_tmpa_clist}
\int_do_while:nn {\l_flavour_expo_pos_int <= \l_flavour_expo_pos_MAX_int}{
% Which variable?
\clist_item:Nn \g_flavour_var_names_clist
{\int_mod:nn {\l_flavour_expo_pos_int - 1}
{\g_flavour_vars_pos_MAX_int} + 1}
% Current exponent if not 1.
\int_set:Nn \l_tmpa_int
{\clist_item:Nn \l_tmpa_clist \l_flavour_expo_pos_int}
\if_int_compare:w \l_tmpa_int = 1
\else:
^ {\int_use:N \l_tmpa_int}
\fi:
% One step further.
\int_incr:N \l_flavour_expo_pos_int
}
}
\ExplSyntaxOff
\begin{document}
\section{Default use}
\[ \xy{1,2,3,4,5,6} \]
\[ \xy{3,2,1,1,2,3} \]
\[ \xy{-1,-2,-3} \]
\[ \xy{1,2} \]
\[ \xy{12345} \]
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12} \]
\section{Customized use}
\UnderflowSetUp{A,B,C}
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12} \]
\UnderflowSetUp{u,n,d,e,r,f,l,o,w}
\[ \xy{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18} \]
\end{document}
```
| 2 | https://tex.stackexchange.com/users/6880 | 684373 | 317,493 |
https://tex.stackexchange.com/questions/684368 | 3 | Compare my question [U with $\mathfrak{i}$ and $\mathfrak{r}$?](https://tex.stackexchange.com/questions/682416/u-with-mathfraki-and-mathfrakr).
How may one fill `$\Omega$` so that it has a plus sign in the middle?
| https://tex.stackexchange.com/users/24406 | $\Omega$ filled with +? | true | Does one of the following possibilities strike your fancy?
If you want to raise the `+` less far than is done in the screenshot, just choose a smaller value in the first argument of `\raisebox`.
```
\documentclass{article}
\newcommand\Omegaplusa{\ooalign{$\Omega$\cr%
\hfil\raisebox{0.60ex}{$\scriptstyle+$}\hfil}}
\newcommand\Omegaplusb{\ooalign{$\Omega$\cr%
\hfil\raisebox{0.85ex}{$\scriptscriptstyle+$}\hfil}}
\begin{document}
The symbols $\Omegaplusa$ and $\Omegaplusb$ denote \dots
\end{document}
```
| 9 | https://tex.stackexchange.com/users/5001 | 684374 | 317,494 |
https://tex.stackexchange.com/questions/684372 | 1 | I had used a sum with `\newcounter` and `\addtocounter` in a longtable and everything worked fine but the usage was a little complicated.
With egreg's help I was able to create a latex3 version to create a sum of different time units and then display the result in a understandable form: [earlier question that was answered](https://tex.stackexchange.com/questions/684289/while-loop-leads-to-missing-number-treated-to-zero-with-latex3?noredirect=1#comment1697809_684289)
Everything works fine, but when I tried to use it in a longtable the sum gets reset every line. Why is that and how I prevent that?
```
\documentclass[parskip=full]{scrlttr2}
\renewcommand\familydefault{\sfdefault}
\usepackage[defaultsans, scale=0.9]{opensans}
\ExplSyntaxOn
\NewDocumentCommand{\newtime}{m}
{
\fp_new:c { l_timecalc_time_#1_fp }
}
\newtime{default} % initialize one
% \addtime* will also show the added time
\NewDocumentCommand{\addtime}{sO{default}mm}
{
\timecalc_time_add:nnn { #2 } { #3 } { #4 }
% with \addtime* also show what's been added
\IfBooleanT{#1}{#3\,\textup{#4}}
}
\NewDocumentCommand{\strtime}{O{default}}
{
\timecalc_time_str:n { #1 }
}
\int_new:N \l__timecalc_time_days_int
\int_new:N \l__timecalc_time_hours_int
\int_new:N \l__timecalc_time_minutes_int
\cs_new_protected:Nn \timecalc_time_add:nnn
{
\str_case:nnF { #3 }
{
{h}{ \fp_add:cn { l_timecalc_time_#1_fp } { #2 * 60 } }
{d}{ \fp_add:cn { l_timecalc_time_#1_fp } { #2 * 60 * 24 } }
{min}{ \fp_add:cn { l_timecalc_time_#1_fp } { #2 } }
}
{\ERROR}
}
\cs_new_protected:Nn \int_div_mod:nnn {
\int_set:Nn #3
{ \int_div_truncate:nn { #1 } { #2 } }
\int_set:Nn #1
{ \int_mod:nn { #1 } { #2 } }
}
\cs_new_protected:Nn \timecalc_time_str:n
{
% round to an integral number of minutes
\int_set:Nn \l__timecalc_time_minutes_int
{ \fp_eval:n { round( \fp_use:c { l_timecalc_time_#1_fp }, 0 ) } }
% compute and remove the number of days
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{1440}{\l__timecalc_time_days_int}
% compute and remove the number of hours
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{60}{\l__timecalc_time_hours_int}
% now print the days
\int_compare:nT { \l__timecalc_time_days_int > 0 }
{ \int_eval:n { \l__timecalc_time_days_int }\,\textup{d}\; }
% now print the hours
\int_compare:nTF { \l__timecalc_time_hours_int > 0 }
{
\int_eval:n { \l__timecalc_time_hours_int }\,\textup{h}\;
}
{% no hours
%\unkern
}
% now print the minutes
\int_compare:nTF { \l__timecalc_time_minutes_int > 0 }
{
\int_eval:n { \l__timecalc_time_minutes_int }\,\textup{min}
}
{% no minutes
%\unkern
}
}
\ExplSyntaxOff
\usepackage{longtable}[=v4.13]
\usepackage{tabu}%
\begin{document}
\begin{letter}{recipient}
\opening{opening}
\begin{longtable}{c}
\textbf{time}
\endhead
\addtime*{20.5}{h}\\
\addtime*{30}{min}\\
\addtime*{2.7}{d}\\
\end{longtable}
This leads to a complete time of \strtime.
Normal sum:
\addtime*{20.5}{h}
\addtime*{30}{min}
\addtime*{2.7}{d}
This leads to a complete time of \strtime.
\closing{concluding text}
\end{letter}
\end{document}
```
P.S.: Also `\unkern` breaks the in longtable and therefore had to be uncommented.
| https://tex.stackexchange.com/users/281557 | Summing does not work in longtable | true | Using the help from David Carlisle I was able to make it work with using `g_` for the variable storing the sum and using `\fp_gadd` instead of `\fp_add` for adding to the sum:
```
\documentclass[parskip=full]{scrlttr2}
\renewcommand\familydefault{\sfdefault}
\usepackage[defaultsans, scale=0.9]{opensans}
\ExplSyntaxOn
\NewDocumentCommand{\newtime}{m}
{
\fp_new:c { g_timecalc_time_#1_fp }
}
\newtime{default} % initialize one
% \addtime* will also show the added time
\NewDocumentCommand{\addtime}{sO{default}mm}
{
\timecalc_time_add:nnn { #2 } { #3 } { #4 }
% with \addtime* also show what's been added
\IfBooleanT{#1}{#3\,\textup{#4}}
}
\NewDocumentCommand{\strtime}{O{default}}
{
\timecalc_time_str:n { #1 }
}
\int_new:N \l__timecalc_time_days_int
\int_new:N \l__timecalc_time_hours_int
\int_new:N \l__timecalc_time_minutes_int
\cs_new_protected:Nn \timecalc_time_add:nnn
{
\str_case:nnF { #3 }
{
{h}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 * 60 } } % <= using \fp_gadd
{d}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 * 60 * 24 } } % <= using \fp_gadd
{min}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 } } % <= using \fp_gadd
}
{\ERROR}
}
\cs_new_protected:Nn \int_div_mod:nnn {
\int_set:Nn #3
{ \int_div_truncate:nn { #1 } { #2 } }
\int_set:Nn #1
{ \int_mod:nn { #1 } { #2 } }
}
\cs_new_protected:Nn \timecalc_time_str:n
{
% round to an integral number of minutes
\int_set:Nn \l__timecalc_time_minutes_int
{ \fp_eval:n { round( \fp_use:c { g_timecalc_time_#1_fp }, 0 ) } }
% compute and remove the number of days
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{1440}{\l__timecalc_time_days_int}
% compute and remove the number of hours
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{60}{\l__timecalc_time_hours_int}
% now print the days
\int_compare:nT { \l__timecalc_time_days_int > 0 }
{ \int_eval:n { \l__timecalc_time_days_int }\,\textup{d}\; }
% now print the hours
\int_compare:nTF { \l__timecalc_time_hours_int > 0 }
{
\int_eval:n { \l__timecalc_time_hours_int }\,\textup{h}\;
}
{% no hours
%\unkern
}
% now print the minutes
\int_compare:nTF { \l__timecalc_time_minutes_int > 0 }
{
\int_eval:n { \l__timecalc_time_minutes_int }\,\textup{min}
}
{% no minutes
%\unkern
}
}
\ExplSyntaxOff
\usepackage{longtable}[=v4.13]
\usepackage{tabu}%
\begin{document}
\begin{letter}{recipient}
\opening{opening}
\begin{longtable}{c}
\textbf{time}
\endhead
\addtime*{20.5}{h}\\
\addtime*{30}{min}\\
\addtime*{2.7}{d}\\
\end{longtable}
This leads to a complete time of \strtime.
Normal sum:
\addtime*{20.5}{h}
\addtime*{30}{min}
\addtime*{2.7}{d}
This leads to a complete time of \strtime.
\closing{concluding text}
\end{letter}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/281557 | 684375 | 317,495 |
https://tex.stackexchange.com/questions/683920 | -1 | Suddenly, my monitor started to show me compiled text which is white on black, instead of black on white.
The saved pdf-file remains black on white.
How may I revert the shown text to be black on white?
| https://tex.stackexchange.com/users/24406 | Black on white unfortunately turned into white on black | true | Texstudio has an option to invert the colours of the pdf viewer. To undo this, right click in the pdf and uncheck "Invert Colors":
| 1 | https://tex.stackexchange.com/users/36296 | 684382 | 317,499 |
https://tex.stackexchange.com/questions/684380 | 3 | Is there a command in `expl3` to check if #1 is either `d` or `h` or `min` and only then run a piece of code?
| https://tex.stackexchange.com/users/281557 | How to check for #1 being either `d` or `h` with latex3? | true |
```
\documentclass{article}
\ExplSyntaxOn
\cs_new:Npn\x_test:n#1{
\bool_if:nTF
{
\str_if_eq_p:nn{#1}{h} ||
\str_if_eq_p:nn{#1}{d} ||
\str_if_eq_p:nn{#1}{min}
}
{#1:yes}
{#1:no}
}
\let\test\x_test:n
\ExplSyntaxOff
\begin{document}
\test{h}
\test{?}
\test{min}
\test{d}
\test{xxx}
\end{document}
```
| 6 | https://tex.stackexchange.com/users/1090 | 684383 | 317,500 |
https://tex.stackexchange.com/questions/684384 | 1 | I would like a word to be only underlined from the second slide onwards, but "\underline<2->{...}" doesn't get recognized unfortunately. Does anybody know an alternative? Thanks
| https://tex.stackexchange.com/users/296058 | Combine overlaying with underline command | true | You could create a custom, overlay aware macro for underlining:
```
\documentclass{beamer}
\usepackage{ulem}
\newcommand<>{\myunderline}[1]{\alt#2{\underline{#1}}{#1}}
\begin{document}
\begin{frame}
\myunderline<2>{test}
\end{frame}
\end{document}
```
| 2 | https://tex.stackexchange.com/users/36296 | 684385 | 317,501 |
https://tex.stackexchange.com/questions/684368 | 3 | Compare my question [U with $\mathfrak{i}$ and $\mathfrak{r}$?](https://tex.stackexchange.com/questions/682416/u-with-mathfraki-and-mathfrakr).
How may one fill `$\Omega$` so that it has a plus sign in the middle?
| https://tex.stackexchange.com/users/24406 | $\Omega$ filled with +? | false | With size changing in subscripts or superscripts.
```
\documentclass{article}
\usepackage{graphicx}
\makeatletter
\NewDocumentCommand{\Omegaplus}{}{{\mathpalette\Omegaplus@\relax}}
\newcommand{\Omegaplus@}[2]{%
\begingroup
\sbox\z@{$\m@th#1\Omega$}%
\sbox\tw@{$\m@th#1\nonscript\mkern0.05mu\mkern0.1mu$}
\ooalign{%
\hidewidth
\raisebox{\dimexpr\ht\z@-\height+\wd\tw@}{\scalebox{0.7}{$\m@th#1+$}}%
\hidewidth\cr
$\m@th#1\Omega$\cr
}%
\endgroup
}
\makeatother
\begin{document}
$\Omegaplus_{\Omegaplus_{\Omegaplus}}$
\Large$\Omegaplus_{\Omegaplus_{\Omegaplus}}$
\end{document}
```
Or maybe
```
\documentclass{article}
\usepackage{amsmath,bm}
\usepackage{graphicx}
\makeatletter
\NewDocumentCommand{\Omegaplus}{}{{\mathpalette\Omegaplus@\relax}}
\newcommand{\Omegaplus@}[2]{%
\vphantom{\Omega}%
\begingroup
\sbox\z@{$\m@th#1\Omega$}%
\ooalign{%
\hidewidth
\raisebox{0.9\dimexpr\ht\z@-\height}{\scalebox{0.5}{$\m@th#1\bm{+}$}}%
\hidewidth\cr
$\m@th#1\Omega$\cr
}%
\endgroup
}
\makeatother
\begin{document}
$\Omegaplus_{\Omegaplus_{\Omegaplus}}$
\Large$\Omegaplus_{\Omegaplus_{\Omegaplus}}$
\end{document}
```
| 9 | https://tex.stackexchange.com/users/4427 | 684388 | 317,502 |
https://tex.stackexchange.com/questions/684386 | 1 | After getting to the solution with `longtable` I was finding I needed `longtabu` because I want to use `X` columns.
However, using `longtabu` the sum does break and shows double to correct value.
And when using a `X`column it adds even more to it.
Is that because the table is compiled multiple times and therefore also running the adding part multiple times? Is there another way to solve this with `expl3` or do I just need to use `longtable` and then manually calculate the `X` column instead to make the table fill the whole `textwidth`?
```
\documentclass[parskip=full]{scrlttr2}
\renewcommand\familydefault{\sfdefault}
\usepackage[defaultsans, scale=0.9]{opensans}
\usepackage[check-declarations]{expl3}
\ExplSyntaxOn
\NewDocumentCommand{\newtime}{m}
{
\fp_new:c { g_timecalc_time_#1_fp }
}
\newtime{default} % initialize one
\NewDocumentCommand{\resettime}{O{default}}{
\fp_gset:cn { g_timecalc_time_#1_fp } { \fpeval{0} }
}
% \addtime* will also show the added time
\NewDocumentCommand{\addtime}{sO{default}mm}
{
\timecalc_time_add:nnn { #2 } { #3 } { #4 }
% with \addtime* also show what's been added
\IfBooleanT{#1}{#3\,\textup{#4}}
}
\NewDocumentCommand{\strtime}{O{default}m}
{
\timecalc_time_str:nn { #1 } { #2 }
}
\int_new:N \l__timecalc_time_days_int
\int_new:N \l__timecalc_time_hours_int
\int_new:N \l__timecalc_time_minutes_int
\cs_new_protected:Nn \timecalc_time_add:nnn
{
\str_case:nnF { #3 }
{
{h}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 * 60 } }
{d}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 * 60 * 24 } }
{min}{ \fp_gadd:cn { g_timecalc_time_#1_fp } { #2 } }
}
{\ERROR}
}
\cs_new_protected:Nn \int_div_mod:nnn {
\int_set:Nn #3
{ \int_div_truncate:nn { #1 } { #2 } }
\int_set:Nn #1
{ \int_mod:nn { #1 } { #2 } }
}
\cs_new_protected:Nn \timecalc_time_str:nn
{
% round to an integral number of minutes
\int_set:Nn \l__timecalc_time_minutes_int
{ \fp_eval:n { round( \fp_use:c { g_timecalc_time_#1_fp }, 0 ) } }
\bool_if:nTF
{
\str_if_eq_p:nn{#2}{d}
}
{%yes
% compute and remove the number of days
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{1440}{\l__timecalc_time_days_int}
% now print the days
\int_compare:nTF { \l__timecalc_time_days_int > 0 }
{ \int_eval:n { \l__timecalc_time_days_int }\,\textup{d}\; }
{% no days
\unkern
}
}{} % no
\bool_if:nTF
{
\str_if_eq_p:nn{#2}{h} ||
\str_if_eq_p:nn{#2}{d}
}
{%yes
% compute and remove the number of hours
\int_div_mod:nnn{\l__timecalc_time_minutes_int}{60}{\l__timecalc_time_hours_int}
% now print the hours
\int_compare:nTF { \l__timecalc_time_hours_int > 0 }
{
\int_eval:n { \l__timecalc_time_hours_int }\,\textup{h}\;
}
{% no hours
\unkern
}
}{} % no
% now print the minutes
\int_compare:nTF { \l__timecalc_time_minutes_int > 0 }
{
\int_eval:n { \l__timecalc_time_minutes_int }\,\textup{min}
}
{% no minutes
0\,min%\unkern
}
}
\ExplSyntaxOff
\usepackage{longtable}[=v4.13]
\usepackage{tabu}%
\begin{document}
\begin{longtable}{r}
\textbf{time}
\endhead
\addtime*{30}{min}\\
\addtime*{4}{h} \\
\end{longtable}
This leads to a complete time of \strtime{h}.
\resettime
Current time: \strtime{h}.
\begin{longtabu}{r}%
\textbf{time}
\endhead
\addtime*{30}{min}\\
\addtime*{4}{h} \\
\end{longtabu}%
This leads to a complete time of \strtime{h}.
\resettime
Current time: \strtime{h}.
\begin{longtabu}{X}%
\textbf{time}
\endhead
\addtime*{30}{min}\\
\addtime*{4}{h} \\
\end{longtabu}%
This leads to a complete time of \strtime{h}.
\end{document}
```
| https://tex.stackexchange.com/users/281557 | Summing does not work in longtabu | false | I suggest you employ the [xltabular](https://www.ctan.org/pkg/xltabular) package and use the following code.
* in the preamble:
```
\usepackage{xltabular}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
```
* in the body of the document:
```
\begin{xltabular}{\textwidth}{R}
\textbf{time}
\endhead
\addtime*{30}{min}\\
\addtime*{4}{h} n \\
\end{xltabular}
```
where `\addtime` is one of the L3-syntax commands defined in the query you posted.
I can't help but remark that if the table really contains just three rows, the machinery of `longtable` and/or `xltabular` packages isn't exactly well-deployed here.
| 0 | https://tex.stackexchange.com/users/5001 | 684391 | 317,503 |
https://tex.stackexchange.com/questions/684390 | 0 | I am trying to use `tabularray` for multi-page tables that span the whole `\textwidth`. However, I fail even at running the examples from the documentation ([tabularray.pdf](https://mirror.dogado.de/tex-archive/macros/latex/contrib/tabularray/tabularray.pdf) page 38).
What am I doing wrong?
```
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\NewTblrTheme{fancy}{
\SetTblrStyle{firsthead}{font=\bfseries}
\SetTblrStyle{firstfoot}{fg=blue2}
\SetTblrStyle{middlefoot}{\itshape}
\SetTblrStyle{caption-tag}{red2}
}
\begin{longtblr}[
theme = fancy,
caption = {A Long Long Long Long Long Long Long Table},
entry = {Short Caption},
label = {tblr:test},
note{a} = {It is the first footnote.},
note{$\dag$} = {It is the second long long long long long long footnote.},
remark{Note} = {Some general note. Some general note. Some general note.},
remark{Source} = {Made up by myself. Made up by myself. Made up by myself.},
]{
colspec = {XXX}, width = 0.85\linewidth,
rowhead = 2, rowfoot = 1,
row{odd} = {gray9}, row{even} = {brown9},
row{1-2} = {purple7}, row{Z} = {blue7},
}
\hline
Head & Head & Head \\
\hline
Head & Head & Head \\
\hline
Alpha & Beta & Gamma \\
\hline
Epsilon & Zeta\TblrNote{a} & Eta \\
\hline
Iota & Kappa\TblrNote{$\dag$} & Lambda \\
\hline
Nu & Xi & Omicron \\
\hline
Rho & Sigma & Tau \\
\hline
Phi & Chi & Psi \\
\hline
......
\hline
Alpha & Beta & Gamma \\
\hline
Epsilon & Zeta & Eta \\
\hline
Iota & Kappa & Lambda \\
\hline
Nu & Xi & Omicron \\
\hline
Rho & Sigma & Tau \\
\hline
Phi & Chi & Psi \\
\hline
Foot & Foot & Foot \\
\hline
\end{longtblr}
\end{document}
```
| https://tex.stackexchange.com/users/281557 | Example in documentation of `tabularray` does not work | true | A quick test shows several problems.
1. Probably not the actual problem, but worth mentioning: `\hline` shouldn't be used here, and the "new syntax" described in the manual should be favored instead.
2. Package `xcolor` should be loaded, otherwise color-related parameters don't work.
3. The line:
```
......
```
between two `\hline` is missing `\\` at the end of the line.
The biggest problem is probably 3), since it's a pure syntax error. I assume that the author didn't mean this line to be typed literally, but wanted to say "type as many lines as you wish here so that the tabular doesn't fit on a single page".
Problem 2) is minor, `xcolor` usually gets loaded anyway, manually or automatically by other packages.
| 2 | https://tex.stackexchange.com/users/267211 | 684392 | 317,504 |
https://tex.stackexchange.com/questions/684363 | 1 | In **LaTeX** I sometimes see the command `\lhd`.
It ends up looking like a Greek letter delta.
>
> ⊲
> =
>
>
>
Usually, **LaTeX** commands are acronyms, initialisms, or abbreviations.
What is the fully spelled out English phrase for `\lhd`.
For example, `\dfrac` is an abbreviation of the English phrase `display fraction`.
| https://tex.stackexchange.com/users/178952 | If you had to write the command `\lhd` in English, what would it say? | false | For people who want a short answer:
>
> The command `\lhd` migh be `\leftarrowhead` if it were written out in full English.
>
>
>
If you want to understand ***why*** "left arrow head" is the answer, then please read the excellent answer written by [David Carlisle](https://tex.stackexchange.com/users/1090/david-carlisle).
| 0 | https://tex.stackexchange.com/users/178952 | 684397 | 317,506 |
https://tex.stackexchange.com/questions/684309 | 0 | If I use a float in the same page where I have the paracol environment, the floats get placed where it is irrespective from the argument. See my MWE. The float on page 1 should be at the bottom, like the one in page 2, but it stays at the top. Why? (If I comment out the paracol all goes well)
```
\documentclass{article}
\usepackage[]{lipsum}
\usepackage{paracol}
\begin{document}
\begin{figure}[b]
Some text that should go at the bottom.
\end{figure}
\columnratio{0.65}
\begin{paracol}{2}
\sloppy
\noindent
Some text in two columns.
\switchcolumn
\noindent
{\scriptsize Some more text in the second column.} \end{paracol}
\lipsum{1}
\begin{figure}[b]
Some text that should go at the bottom.
\end{figure}
\lipsum{1}
\end{document}
```
| https://tex.stackexchange.com/users/254618 | Paracol and floats placement | false | I tried to get the layout I want using, instead of figure floats, footnotes without marker. Please see this post that thought me how to get rid of the markers: [Footnote without a marker](https://tex.stackexchange.com/questions/30720/footnote-without-a-marker). Maybe it is not a very elegant solution but does anyone see an alternative?
```
\documentclass{article}
\usepackage{paracol}
\usepackage{lipsum}
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\renewcommand*\footnoterule{}
%\usepackage[hang,flushmargin]{footmisc}
\footnotelayout{m}
\begin{document}
\columnratio{0.55}
\begin{paracol}{2}
\sloppy
\blfootnote{ {\scriptsize \hspace{-16pt} A bottom float. \lipsum{1}}}\lipsum[1]
\switchcolumn\sloppy
{\footnotesize \lipsum[1]}
\end{paracol}
\blfootnote{ {\scriptsize \hspace{-16pt} This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. }}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/254618 | 684400 | 317,507 |
https://tex.stackexchange.com/questions/683088 | 0 | Working on a book which references a few deuterocanonical/apocryphal books of the bible, most of which are not included in the default bibleref package.
Some of these are multi-part books, in the same vein as Chronicles, Samuel, and Kings.
In particular, I wish to reference the book of Second Esdras.
I've used the following MWE:
```
\documentclass{book}
\usepackage{bibleref}
\usepackage{indextools}
\addbiblebook{IEsdras}{1 Esdras}
\addbiblebook{IIEsdras}{2 Esdras}
\biblerefmap{Genesis}{01}
% rest of OT
\biblerefmap{Chronicles2}{14}
% rest of OT
\biblerefmap{Malachi}{39}
\biblerefmap{Matthew}{40}
% rest of NT
\biblerefmap{Revelation}{66}
\biblerefmap{Esdras1}{67}
\biblerefmap{Esdras2}{68}
\makeindex[title=Scripture,name=scr]
\makeindex[title=General]
\begin{document}
% other references and text
\ibibleverse{IIEsdras}(14:41,45)
% other references and text
\printindex[scr]
\end{document}
```
However, 2 Esdras gets sorted in just after 2 Chronicles, instead of after both the old and new testament as one would hope/expect. There's probably some edge case with these kind of books that I'm missing.
| https://tex.stackexchange.com/users/257555 | bibleref: adding multi volume book and sorting properly | true | While I'm no latex expert (especially in the context of anything outside of a \*.tex file), I managed to dig around in the source for the bibleref package itself and find that using
```
\addbiblebook{IEsdras}{\BRbooknumberstyle{1}\BRbookof Esdras}
\addbiblebook{IIEsdras}{\BRbooknumberstyle{2}\BRbookof Esdras}
```
produces the desired results. Could be there's some hangup there I may run into later but for now 'it works.'
| 0 | https://tex.stackexchange.com/users/257555 | 684404 | 317,508 |
https://tex.stackexchange.com/questions/684402 | 5 | Inspired by the question [here](https://tex.stackexchange.com/questions/225774/endnotes-in-plain-tex), I'd like to style entnotes thus (plain/optex):
**1.** First endnote, endnote number same as text size, not superscript, bold, with a dot after it. **2.** Second entnote on same line, to save space. **3.** Third ntnote on same line
Here's what I've (not) done so far:
```
\ptlang
\fontfam[Heros]
\typosize[10/14]
\verbchar` % in-text verbatim by `...`
\everyintt={\Red\bf} % in-text verbatim Red
%\famvardef\tt{\Heros\setff{-liga;-tlig}}
%\everytt={\hisyntax{TEX}}
%\hyperlinks
\famvardef\tt{\Heros}
%\parskip=0pt plus 4pt minus 4pt
%%%%%%%%%%%%%footnote style below:%%%%%%%%%%%%%
\def\fnmark#1{\leavevmode\raise.7ex\hbox{\setfontsize{mag.6}\lnum\currvar #1}} %Olsak's definition
\def\_printfnotemark{\fnmark{\_fnotenum}}
%%%%%%%%%%%%%%%
%\input endnote
% Use \endnote{1}{text}. At the end of your document, type
% \producenotes to actually flush all end notes to be printed.
%
% macros for making endnotes instead of footnotes
% We make @ signs act like letters, temporarily, to avoid conflict
% between user names and internal control sequences of plain format.
\catcode`@=11
\newbox\endnotebox
\def\setendnotefont#1{\gdef\endnotefont{#1}}
\setendnotefont{\rm}
\def\endnote#1{\let\@sf\empty
\ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi
#1\@sf\vendnote{{#1}}}
\def\vendnote#1{\global\setbox\endnotebox=
\vbox{\parindent=0pt\hangindent=0.5em\hangafter=1
\endnotefont\unvbox\endnotebox\bgroup
\indent\llap#1\ignorespaces\futurelet\next\aftergroup\no@te\relax}}
\def\no@te{\ifcat\bgroup\noexpand\next \let\next\n@@te
\else\let\next\n@t\fi \next}
\def\n@@te{\bgroup\aftergroup\@endnote\let\next}
\def\n@t#1{#1\@endnote}
\def\@endnote{\strut\egroup}
%
\newcount\enotecounter
\def\resetenotecount{\global\enotecounter=0 } \resetenotecount
\def\setenotecount#1{\global\enotecounter=#1 }
%
\def\setendnoteflagfont#1{\gdef\endnoteflagfont{#1}}
\setendnoteflagfont{\sevenrm}
\def\enote{\unskip
\global\advance \enotecounter by 1 % First bump the counter.
% Now convert the current value of the counter into a superscripted numeral
%\endnote{{$^{\hbox{\endnoteflagfont\the\enotecounter}}$}}
\endnote{\fnmark{\the\enotecounter} } % aqui mudamos para nossa definição
}
%
\def\producenotes{\ifvoid\endnotebox\else\medskip\unvbox\endnotebox\par\fi}
\catcode`@=12 % at signs are no longer letters
\chap Um capítulo
\begmulti 2
Hello world! This is to have an endnote.\enote{Automatic note 1} \enote{Automatic note 2, which should be on the same line, and {\bf [2] } text...}
\nonum \sec Notas para o capítulo 1
\producenotes
\endmulti
\bye
```
| https://tex.stackexchange.com/users/258453 | sequential (one-line) endnotes in optex | true | I'm sure that there is a purely macro-based way of doing this, but for fun, here's a Lua-based solution:
```
% Endnote code
\_namespace{endnote}
% Initialize variables
\_newcount\.number
\_newcount\.page
\_newbox\.contents
\_directlua{
endnotes = {}
unpaged_endnotes = {}
}
% Format the endnote marks
\_newpublic\_def\endnotecmd#1{#1}
% Define the endnote command
\_newpublic\_def\endnote#1{%
\_setbox\.contents=\_hbox{#1}%
\_global\_advance\.number by 1%
\endnotecmd{\_the\.number}%
\_directlua{
local number = tex.count.\_csstring\.number;
local box = tex.box.\_csstring\.contents;
unpaged_endnotes[number] = true
endnotes[number] = { node.copy_list(box) }
}%
\_latelua{
for note in pairs(unpaged_endnotes) do
table.insert(endnotes[note], tex.count[0])
end
unpaged_endnotes = {}
}%
}
% Lua-based helpers
\_directlua{
optex.define_lua_command("\_csstring\.getnote", function()
local number = token.scan_int()
local note = endnotes[number]
tex.box.\_csstring\.contents = note[1]
tex.count.\_csstring\.page = note[2] or tex.count[0]
tex.count.\_csstring\.number = number
end)
local integer_token = token.command_id("char_given")
optex.define_lua_command("\_csstring\.gettotal", function()
token.put_next(token.create(\string#endnotes, integer_token))
end)
}
% Content before the endnotes
\_newpublic\_def\premakeendnotes{}
\_newpublic\_def\postmakeendnotes{}
% Get the endnotes
\_newpublic\_def\makeendnotes{%
\premakeendnotes%
\_fornum 1..\.gettotal \_do {\.makenote{##1}}%
\_global\.number=0%
\directlua{
endnotes = {}
unpaged_endnotes = {}
}%
\postmakeendnotes%
}
\_def\.makenote#1{%
\.getnote #1
\makeendnote{\_the\.number}{\_the\.page}{\.contents}%
}
% Format the endnote contents
% #1 = endnote number
% #2 = page number
% #3 = endnote contents
\_newpublic\_def\makeendnote#1#2#3{#2}
\_endnamespace
% User code
\fontfam[lm]
%% Style 1
\def\endnotecmd#1{\unskip$^{#1}$}
\def\premakeendnotes{%
\bigskip%
\_begingroup%
\raggedright%
}
\def\makeendnote#1#2#3{%
\noindent%
{\bf #1.~}%
\_unhbox#3%
\quad\_penalty-1000%
}
\def\postmakeendnotes{%
\_par%
\_endgroup%
\vfill\eject%
}
%% Style 2
% \def\endnotecmd#1{\unskip\raise.5ex\hbox{\typosize[6/]\it #1}}
% \def\premakeendnotes{%
% \vfill\eject
% \nonum\_insec{Endnotes}
% \parindent=0pt
% }
% \def\makeendnote#1#2#3{%
% {\bf #1:} \_unhbox#3\ (page #2)\par%
% }
\chap One
One\endnote{First endnote.} two\endnote{Second endnote.}.
% \vfill\eject
Three\endnote{Third endnote.} four\endnote{Fourth endnote.}
five\endnote{Fifth endnote.} six\endnote{Sixth endnote.}.
\makeendnotes
\chap Two
One\endnote{First endnote.} two\endnote{Second endnote.}.
% \vfill\eject
Three\endnote{Third endnote.} four\endnote{Fourth endnote.}.
\makeendnotes
\bye
```
Style 1:
Style 2:
| 6 | https://tex.stackexchange.com/users/270600 | 684406 | 317,509 |
https://tex.stackexchange.com/questions/684401 | 1 | An entire English sentence for `\dfrac` might be as follows:
>
> "insert a display mode fraction"
>
>
>
Note that `dfrac` is a sub-sequence of "insert a **D**isplay mode **FRAC**tion"
What is an entire English sentence for `\qquad` such that the sentence is a subsequence of `qquad`
The meaning is probably something like "insert a white space here"
| https://tex.stackexchange.com/users/178952 | What is an entire English sentence for `\qquad` | false | Quoting from p. 166 of the TeXbook:
>
> The traditional hot-metal technology has led to some ingrained standards for [certain spacing issues], based on what printers call a "quad" of space. Since these standards seem to work well in practice, TeX makes it easy for you to continue the tradition: When you type `\quad` in plain TeX [and LaTeX], you get a printer's quad of space in the horizontal direction. Similarly, `\qquad` gives you a double quad (twice as much); ...
>
>
>
But where does the term "quad" come from? In modern Dutch and German, and presumably some other Germanic languages as well, a "Quadrat" is a square (noun); "quad", then, is an abbreviation of "Quadrat". The German word "Quadrat", in turn, derives from Latin, and variants of "Quadrat" may thus be found in many modern Romance languages. E.g., one square meter, in modern Italian, is "un metro quadrato".
I don't have a book on the history of movable-type printing in Europe at hand, but I think it's reasonable to assume that the term "quad" would have arisen in the work of printers both north and south of the Alps within a generation or two after the invention of movable type.
| 1 | https://tex.stackexchange.com/users/5001 | 684410 | 317,511 |
https://tex.stackexchange.com/questions/420304 | 3 | I am trying to run some latex files on a new computer. I am using an external hard drive that is a direct copy of my previous computer so the files all should be fine, however I am getting the error:
```
Sorry, but "MiKTeX Compiler Driver" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:/Users/******/AppData/Local/MiKTeX/2.9/miktex/log/texify.log
You may want to visit the MiKTeX project page, if you need help.
```
I have found lots of threads on this, but none of the solutions given have worked for me. I have tried deleting aux files and re-running, I have tried running from command prompt, I have tried uninstalling and reinstalling MiKTeX, I have tried running initexmf --mkmaps --verbose from the command prompt. The log file it directs me too reads as follows:
```
2018-03-15 11:36:30,425Z INFO texify - starting with command line:
"C:\Program Files\MiKTeX 2.9\miktex\bin\x64\texify.exe" --pdf --synctex=1 --clean warwickthesis.tex
2018-03-15 11:36:49,382Z FATAL texify - BibTeX failed for some reason.
2018-03-15 11:36:49,382Z FATAL texify - Info:
2018-03-15 11:36:49,382Z FATAL texify - Source:
Programs\MiKTeX\texify\mcd.cpp
2018-03-15 11:36:49,382Z FATAL texify - Line: 1286
```
I have since tried running just pdflatex - this works but obviously does not create references etc. Running just bibtex does not work and returns this in the blg file:
```
This is BibTeX, Version 0.99dThe top-level auxiliary file: warwickthesis.aux
The style file: unsrt.bst
Database file #1: library.bib
Repeated entry---line 1242 of file library.bib
: @article{Takishita2015
: ,
I'm skipping whatever remains of this entry
Repeated entry---line 1396 of file library.bib
: @article{Grassie2005
: ,
I'm skipping whatever remains of this entry
Warning--I didn't find a database entry for "Haidemenopoulos2016"
Warning--I didn't find a database entry for "Hughes2015"
Warning--I didn't find a database entry for "Blitz1997"
Warning--I didn't find a database entry for "Bieber1998"
Warning--I didn't find a database entry for "Tian2005"
Warning--I didn't find a database entry for "Mina1997"
Warning--I didn't find a database entry for "Drinkwater2006"
Warning--I didn't find a database entry for "Grimberg2006"
Warning--I didn't find a database entry for "Edwards2008a"
Warning--I didn't find a database entry for "Gros1999"
Warning--I didn't find a database entry for "Hughes2014"
Warning--I didn't find a database entry for "Honarvar2013"
Warning--I didn't find a database entry for "Alvarez-Arenas2013"
Warning--I didn't find a database entry for "Kang2017"
... etc (few more of these)
Warning--empty journal in Ewert2013
Warning--can't use both author and editor fields in Achenbach1999
Warning--empty journal in Blake1990
Warning--empty note in Thring2018
(There were 2 error messages)
```
This is odd as the references are in my library created by Mendeley and the referencing works fine on a different computer.
Any suggestions?
| https://tex.stackexchange.com/users/157235 | Sorry, but "MiKTeX Compiler Driver" did not succeed. FATAL texify - BibTeX failed for some reason | false | For anyone else with this error, I accidentally had commented text at the top of my .bib file (I noticed when the commented text was being referenced in the error logs) make sure you delete that in your .bib file!
| 2 | https://tex.stackexchange.com/users/296069 | 684411 | 317,512 |
https://tex.stackexchange.com/questions/684395 | 1 | With dramatist package to type theater play, how to get first act and first scene show a full-letter number ? And how to make it work only for first acts and scenes, the other acts and scene should remain roman numbers.
As example
```
\documentclass{article}
\usepackage{dramatist}
\begin{document}
\act
Lorem ipsum
\scene
Lorem ipsum
\scene
Lorem ipsum
\act
Lorem ipsum
\scene
Lorem ipsum
\end{document}
```
Should render:
```
Act one
Lorem ipsum
Scene one
Lorem ipsum
Scene II
Lorem ipsum
Act II
Lorem ipsum
Scene one
Lorem ipsum
```
| https://tex.stackexchange.com/users/30933 | “Act one” and “Scene one” in dramatist instead of “Act I” and “Scene I” | false | Here is a solution, but I still asking for any improvement before making this tread as resolved.
```
\documentclass{article}
\usepackage{dramatist}
\usepackage{ifthen} % To test if a scene is the first one
\newcounter{allwaysone}
\stepcounter{allwaysone} % This counter is just here to make the test in the \makeactfullleteriffirst command
\newcommand\makeactfullletteriffirst[1]{%
% Command for testing if the act is the first one then return “one”. If not return the input value.
\ifthenelse{\equal{#1}{\actnumfont \roman{allwaysone}}}%
{%
one%
}%
{%
#1%
}%
}%
\makeatletter
\renewcommand\m@ke@cthead[1]{%
\actheadstart
{\parindent \z@
\ifnum\c@secnumdepth>\m@ne
\printactname \printsep \makeactfullletteriffirst{\printactnum} % here is the relevant line
\fi
\printacttitle{#1}
\afteract}
}
\makeatother
\begin{document}
\act
Lorem ipsum
\scene
Lorem ipsum
\scene
Lorem ipsum
\act
Lorem ipsum
\scene
Lorem ipsum
\end{document}
```
| 0 | https://tex.stackexchange.com/users/30933 | 684412 | 317,513 |
https://tex.stackexchange.com/questions/656624 | 1 | In the following we can see that I reuse the same `\pscustom` directive, All my paths have here the same style. Is it possible to declare it globally for all the paths?
```
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(151.18,113.38)
\newrgbcolor{red}{0.85 0.16 0.10}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=red]
{
\newpath
\moveto(111.42,27.49)
\lineto(85.09,27.49)
\lineto(85.09,19.43)
\lineto(103.36,19.43)
\lineto(103.39,19.01)
...
\lineto(104.88,1.90)
\lineto(111.43,1.90)
\lineto(111.43,27.49)
\closepath
}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=red]
{
\newpath
\moveto(69.77,71.11)
\lineto(69.77,84.41)
...
\lineto(61.28,63.20)
\lineto(111.42,63.20)
\lineto(111.42,71.11)
\closepath
}
\end{pspicture}
```
| https://tex.stackexchange.com/users/85416 | Is it possible to have \pscustom style for more than one path? | true |
```
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}% global setting
{% local setting, but global to pspicture environment
\psset{linestyle=none,fillstyle=solid,fillcolor=red}
\begin{pspicture}(151.18,113.38)
\pscustom{
\moveto(111.42,27.49)
\lineto(85.09,27.49)
\lineto(85.09,19.43)
\lineto(103.36,19.43)
\lineto(103.39,19.01)
\lineto(104.88,1.90)
\lineto(111.43,1.90)
\lineto(111.43,27.49)
\closepath
}
\pscustom{
\moveto(69.77,71.11)
\lineto(69.77,84.41)
\lineto(61.28,63.20)
\lineto(111.42,63.20)
\lineto(111.42,71.11)
\closepath
}
\end{pspicture}%
}
\end{document}
```
| 1 | https://tex.stackexchange.com/users/187802 | 684414 | 317,515 |
https://tex.stackexchange.com/questions/578708 | 0 | I just did a `do_release_upgrade` with my Ubuntu from Ubuntu 18 to Ubuntu 20, which of course also updated a lot of TeX. Since then, the following minimal example
```
\documentclass{article}
% \def\pgfversion{42} %% Adding this doen't help
\usepackage{pstricks}
\begin{document}
\end{document}
```
results in the following
```
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def))
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)))))
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/share/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
(/usr/share/texmf/tex/generic/pgf/utilities/pgffor.code.tex
Loading [
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \ProvidesPackageRCS[v
\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf...
?
```
Apparently, `\pgfversion` is not (yet) defined when needed (inside the `\usepackage{pstricks}`) .
**Q:** What's wrong? no package seems to desire update.
As a workaround, I tried adding `\def\pgfversion{42}`, but that doesn't change anything, i.e., inside the `\usepackage`, the `\pgfversion` is still undefined.
---
**Edit:** I'm using TeX-live. For convenience, I replaced pst-text with the more immediate pstricks and added the *complete* output above in order to make the used filenames clear.
| https://tex.stackexchange.com/users/25343 | Problems with pst-text package after ubuntu update | false | I had the same problem when performing the same upgrade.
I was able to fix it by editing the file `/path/to/texmf/tex/generic/pgf/utilities/pgffor.code.tex` and commenting out the line `\ProvidesPackageRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/utilities/pgffor.code.tex,v 1.25 2013/12/13 11:40:27 tantau Exp $`
| -1 | https://tex.stackexchange.com/users/155140 | 684417 | 317,516 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.