All Questions
253,788
questions
0
votes
0
answers
17
views
Is there a .lyx template for DTX (Documented LaTeX sources)?
Or, straight-forward instructions for configuring LyX to use DTX files?
Or, more generally, what would be a simple Literate Programming system for LyX which would allow the writing of arbitrary source ...
2
votes
2
answers
57
views
How to top-align the rotated cell contents of one row in a table?
Consider the following MWE:
\documentclass[]{scrartcl}
% PACKAGES
\usepackage[]{mathtools,amsthm,amssymb,mathrsfs,mathalfa} % Math Packages
\usepackage[]{bm} % To get bold math.
\usepackage[]{...
1
vote
1
answer
22
views
Remove Extra space at the end of xltabular section
I have a section like this:
\section{Languages}
\vspace{-30pt}
\noindent\begin{xltabular}{\linewidth}{
@{}>{\small}p{.15\textwidth}
X@{}
}
& \textbf{Persian}: Native / ...
3
votes
1
answer
43
views
How to "fake packages" for TeX Live on Arch Linux?
How to "fake packages" for TeX Live on Arch Linux?
I installed TeX Live directly from the script rather than the Arch packages. However pacman is unaware that I installed it and tries to ...
1
vote
0
answers
37
views
Double subscript error on ${\tilde a_0}_0$? [duplicate]
${a_0}_0$ compiles fine: ${a_0}_0$
${\tilde a_0}_0$ yields a "double subscript" error.
Why is that and how can I fix it?
5
votes
2
answers
83
views
Alignment problems with regression table and math in heading
I have a problem with the alignment of the commas in a regression table. Due to the fact that I also have mathematical expressions in the heading, other solutions I found do not work.
Is it still ...
3
votes
2
answers
127
views
Shading 3D arrows with conical tips
I have the following figure that represents some electromagnetic field.
The figure was somewhat replicated from this one:
You can see that the original one has some shadings to the arrows while mine ...
1
vote
1
answer
37
views
How can I fix the alignment of the vertical dots in this matlab style syntax matrix?
I am trying to adapt the code from this post to allow for matlab style syntax for matrices in latex. In the MWE example, the alignment of the \vdots is incorrect (should be centered)...
My MWE is...
\...
1
vote
1
answer
45
views
Vertical spacing around plain display math vs `amsmath` environments such as `gather`
Let us have a look at the following minimal example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
This is the first line.
% \begin{gather*} x^2 + y^2 = z^2. \end{gather*}
\begin{...
0
votes
0
answers
27
views
Plotting graphs in latex
How do I plot this exact graph in latex? can anyone help me? when I do only the forward bias part it gives "too large dimension" error. so I want to avoid that too.
1
vote
1
answer
36
views
pstricks: How to use adjustbox (or alternative) with pstricks?
When I use an adjustbox around anything drawn with pstricks, the adjustbox just gets ignored. scalebox works, but requires manual tuning to determine the proper scaling factor (e.g., to scale ...
3
votes
0
answers
38
views
+50
How to set de spacing between the text and the image caption to `\baselineskip`?
I tried to set everything to \baselineskip in the code below, but the space between the text and the image not match with the rest of the text.
\documentclass[14paper,12pt]{article}
\usepackage{...
0
votes
0
answers
48
views
How to draw a horizontal plot with TiKz? [duplicate]
can anyone help me to understand how to draw this shape with tikz? also, can you send me the main reference of this concept in www.tikz.dev?
3
votes
0
answers
78
views
Using LaTeX with dysgraphia
I saw that another user on here used LaTeX and mentioned having a writing disability. As I stand now I take over a minute two write out a super simple formula on paper in a way that's legible. I've ...
0
votes
0
answers
23
views
Documentation on \ref and \label behaviour with regard to newline, tab, etc
It seems that \ref and \label matches newline with whitespaces: i.e. the following pair works
\label{foo
bar}
\ref{foo bar}
And tabs works similarly.
Is there any documentation on this behaviour and ...
7
votes
2
answers
137
views
l3keys equivalent of pgfkeys' .code 2 args
What is the recommended way to emulate pgfkeys' /.code 2 args (or more generally /.code n args) handler with l3keys? For example, with pgfkeys one can do
\documentclass{article}
\usepackage{pgfkeys}
...
0
votes
1
answer
62
views
Quick Reference in Two Columns
Pramod Achar's book on perverse sheaves has a quick reference in the back that looks like this. How can I achieve something similar? The important things to me are: the general spacing (although maybe ...
-1
votes
0
answers
23
views
conway-conxeter frieze diagram [closed]
I am trying to draw a conway-coxeter frieze diagram in $LaTeX$. It looks like the following. I am not sure how to get the alternating alignment with the regular matrix package, so can somebody help ...
6
votes
2
answers
309
views
LaTeX3 - Advice on a code to validate an ISO date
The following code is a POC showing a way to validate one Julian date in "pure" LaTeX3: it is related to this question.
There is no doubt that this code contains some clumsiness. Any advice ...
0
votes
0
answers
10
views
How to change the 'continues on next page' table caption?
I am working on a user manual, compiling it from .rst source files with the pdflatex engine. My user manual has two versions: in English and in Russian. The issue that I have is connected with tables ...
3
votes
1
answer
61
views
Do the \parindent and \noindent cancel each other out?
I was reading through the \maketitle command provided by the default article.cls class and it has the following code:
\newcommand\maketitle{\par
\begingroup
\renewcommand\thefootnote{\@...
0
votes
0
answers
26
views
spath3 causes Package pgfkeys Error with TeX Live 2020
I would like to report an error that a user of mine has with a TeX (LaTeX) file my Python software creates. I am using the spath3 package by Andrew Stacey to save and re-use a path. I cannot reproduce ...
2
votes
1
answer
80
views
Why does this Beamer plain option only works when it's not the first slide?
I'm trying to adapt an unofficial Beamer template for my university (GitHub, Overleaf). Right now, when I try to compile this MWE:
\documentclass{beamer}
\usetheme[bgphoto]{polimi}
\title[MS thesis]{...
3
votes
0
answers
59
views
Shift node text in tikz
I need to display two lines of text at a node using tikz. The code I am using is:
\documentclass{book}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\...
0
votes
1
answer
35
views
What does \usebibmacro{bibindex} in BibliographyDrivers do?
I am trying to define a custom bibliography style for my university courses and for this I want to understand what other styles do . Virtually every *.bbx file I looked at starts its Bibliography ...
0
votes
2
answers
30
views
Changing cell height in tabularray
I'm trying to make a schedule using tabularray. Below is my code and picture.
\documentclass[12pt,a4paper]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[left=0mm,top=0mm,...
0
votes
0
answers
49
views
One or selected few local optima automation in Tikz
I am trying to automate min/max values using the code here:
How can I automatically mark local extrema with pgfplots and scatter?
The horizontal line appears at height of the label instead of the ...
1
vote
1
answer
59
views
Change the author name order in Biblatex APA style
I'm trying to recreate a very specific style based off of Benjamins style, with a few changes. Benjamins is close to APA, but has some small differences, and the supervisor for this project has other ...
0
votes
0
answers
34
views
Numbering figures like 2.1, 2.2 etc. after customization of the counter
I customized the counter only for a figure (e.g. 2.7, 2.8, 2.8.2); when I try to restore the value 2.9 I get an error because I used the following command before the begin{figure} concerning the ...
0
votes
0
answers
16
views
How to write above specific bars in bar graphs using pgfplots?
I would like to put values above a few bars in my bar graph.
For those bars whose value exceeds 1.7, I clip off the bar at 1.7 and write its actual value on top of that bar. Here is what I have (for ...
0
votes
0
answers
20
views
how to turn off the Image creation in TeX4ht
I don't want to reproduce the images as any format, like png, I need to turn off the options, For the equation, I am using the mathjax option
I run the file through
make4ht.exe -l -a debug -u -c mycfg....
2
votes
1
answer
80
views
How to make a matrix with \llparenthesis and \rrparenthesis?
I have the following document:
\documentclass{article}
\usepackage{ stmaryrd }
\usepackage{amsmath}
\begin{document}
$\left\llparenthesis\!\!\!\left\llparenthesis\!
\begin{matrix}
1\\2\\3
\end{...
1
vote
1
answer
33
views
First tag of nested description environment with newline style wont appear on new line
I have the next document:
\documentclass[12pt]{article}
\usepackage[english, ukrainian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\setdescription{style=...
5
votes
2
answers
219
views
How to add a left-hand brace to this system of equations?
How to
My code
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{3}
a_1x &+ b_1y &&+ c_1z &&= d_1 \label{eq1}\\
a_2x &...
0
votes
1
answer
30
views
Latex header spanning full page width
I am preparing a document for bookbinding. I want to add a colored header which spans the whole width of the page so that I can trim the book later. I currently found an option which achieves almost ...
1
vote
2
answers
86
views
Hanging indent with biblatex tikzpicture node bibliography is offset, how can it be controlled?
Following on from a question yesterday for which a successful answer was provided (`biblatex` and `\includestandalone` is causing unexpected indents in a `tikzpicture` nodes printed bibliography), a ...
0
votes
0
answers
26
views
change color of page number on a single page
I am coloring a single page of my document black (\pagecolor{black}) but need the page number on the bottom to be in white text. What's the simplest/best way to do this, ideally without importing any ...
0
votes
1
answer
49
views
How convert equation environment to dmath environment automatically?
Sometimes I use software to generate Latex which does not support breqn package. It can create equation environment.
Is it possible to add some code, in the preamble only, which converts any \begin{...
0
votes
1
answer
38
views
In LaTeX beamer, show subitems one by one
I am attempting this:
\begin{frame}
\begin{itemize}
\item<1-> Hello
\item<2-> World
\begin{itemize}[<.(1)->]
\item A
\item B
\item C
\end{...
1
vote
1
answer
51
views
Putting figures side by side in a single column of a two-column document
While writing a document using revtex4-1 I need to put two figures side by side in a single column. I have tried \subfigure command as follows,
\begin{figure*}[htp]
\centering
\subfigure[...
1
vote
1
answer
18
views
\multirow in tex4ht -- in the next row extra <td> not removed and produced wrong HTML view
In tex4HT, \multirow produced the HTML output, but the extra <td> element not deleted when the previous row has more rows option (\multorow)
I run the file through make4ht.exe -l -a debug -u <...
1
vote
1
answer
43
views
Table Column Alignment to HTML
How to retain the LaTeX tabular cell alignment in the converted HTML col element?
For example:
\begin{tabular}{**lcr**}
should convert as
<col align="**left**" ..><col align="...
1
vote
1
answer
24
views
Auto-completion all text in Texstudio without shortcut
How to autocomplete regular text in Texstudio, not just mathematical text, and without using shortcuts?
Whenever I type 3 letters consecutively, I want the autocomplete window to appear. I don't want ...
0
votes
0
answers
15
views
Add the top and bottom ticks to the y-axis in multiple y axes figure produced by 'pgfplots'?
It is common to draw multiple y axes figure, but sometimes there are not the top and bottom ticks in the outer y axes produce by pgfplot.
\documentclass{article}
\usepackage{lmodern}
\usepackage{...
1
vote
1
answer
27
views
Customizing Section Header in Koma-script: Getting warning "Usage of deprecated command \ifstr"
I'm using Koma-script package for the LaTeX document.
For customizing section header, I'm using the following code:
\documentclass[11pt,a4paper]{scrartcl}
\usepackage[margin=1.0in]{geometry}
\...
11
votes
3
answers
1k
views
Should one ever use \bigskip?
I am wondering whether one is ever justified in using \bigskip in LaTeX (specifically in overleaf)? I have recently drastically reduced my use of it, due to my teacher's recommendation. But I tend to ...
1
vote
1
answer
60
views
Strict version of \keys_set_groups:nnn
Here's a little code where the key-value allowed by the macro is an unwanted feature : for example, single[both = OK, only = KO] doesn't give any error as I'd hoped. But on the other hand, I would ...
5
votes
0
answers
67
views
Header is changed to upper case only when uploading to arXiv
I wrote an essay using Overleaf and I am trying to upload it to arXiv. When I compile it on Overleaf or locally using pdflatex main.tex the section name in the header is lowercase. I get the following:...
0
votes
1
answer
51
views
Adding biblatex bibliography sections to table of contents
This post shows nicely how to create a sectioned bibliography with biblatex. However, the section titles do not appear automatically in the table of contents. Is there a parameter for the \...
0
votes
0
answers
35
views
+50
Can't get Appendix before A on TOC, when using appendix package with titlesec and titletoc
I'm writing my thesis and Appendices have to say “Anexo” before chapter letter. I tried using \usepackage[titletoc]{appendix}, but it didn't work. Also tried to comment command from titlesec and ...