All Questions
237,861
questions
2
votes
1
answer
23
views
Reference section inside table including labels set in that section
L.S.,
For a modular document where .tex files containing a section can be added and removed, i'm looking for a way to include an overview table of these sections. In this table labels that are set in ...
0
votes
2
answers
35
views
Difficulty when using \ifthenelse{\equal{ }} to determine tilde (~) status
I'm having to determine whether the tilde (~) character exists at the end of a string, but I am seeing differing results depending on the macro, e.g:
\documentclass{article}
\usepackage{ifthen}
\...
2
votes
1
answer
28
views
Nodes anchors in foreach loop
I need to change the anchor of a node depending on the sign. For example, if the sign is "-", then the anchor is "north", otherwise "south". To do this, I implemented the ...
0
votes
1
answer
27
views
How to Produce a Sequence of Numbered Statements Outside of Math Mode and Without Augmenting Equation Counter?
I would like to reproduce the following without using the general equation counter and without using math mode. How can I do this?
0
votes
0
answers
57
views
How can I solve the errors in Miktex console compilation?
I have the following errors while trying to compile my .tex file in console mode:
"entering extended mode
<C:\Users\Documents\myfile.tex>
Latex2e <2021-11-15> patch level 1
L3 ...
1
vote
1
answer
35
views
Adjusting the horizontal alignment of labels of nested numbering lists
In the following example I have succeeded aligning the first level of numbering both internal numbering of exam document class and numbering of enumitem package exactly after the left margin. I would ...
3
votes
3
answers
78
views
Vertical alignment between two lines of text
I'd very much appreciate a bit of help on this subject.
I am trying to obtain an alignment between those two lines as shown in the picture below.
I can only manage to do it like this :
I also tried ...
0
votes
0
answers
14
views
Adjust line height locally [duplicate]
I was trying to create a custom 'part', So, to do that I have written the following code,
\newcommand\partino[2]
{\phantomsection\addcontentsline{toc}{chapter}{{#2}}\thispagestyle{empty}
{\...
4
votes
1
answer
122
views
\def with number in macro works?
I know that numbers cannot be used in macros, e.g., in \def/\newcommand definitions. Can anybody explain to me why this
\documentclass{article}
\def\i2{\frac{i}{2}}
\begin{document}
$\i2$
\end{...
0
votes
1
answer
30
views
Conventional headsep in academic proposal
In the pdf generated by the following code, from Page 2, the first line overlaps with the header.
Does anyone know if there is any conventional measures for headheight and headsep on an A4 paper (for ...
1
vote
1
answer
25
views
Adjusting the edge on this figure to fit into the margins?
Consider:
\documentclass[12pt,a4paper,oneside]{book}
\usepackage[nottoc]{tocbibind}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{bm}
\usepackage{nccmath}
\usepackage{amsfonts, ...
4
votes
1
answer
41
views
How to use xcolor color names in tikzpicture style?
I want to use color names like MidnightBlue in a style for a tikzpicture to e.g. fill it with a specific color, is this possible? Or am I limited to the other style (red!30 etc.)?
This MWE fails with ...
0
votes
0
answers
26
views
Interactive button in PDF using LaTex?
Multilingual documents in overleaf Using this thread I've created a bilingual document where a simple command changes the language that is rendered.
I now have to recompile the document to change ...
0
votes
1
answer
17
views
How do I cite both name and year in parentheses in sn-jnl?
I want to cite the name and year of publication in parentheses in sn-jnl. However, the various options that I have tried return an index number in brackets only:
\documentclass[pdflatex,sn-mathphys]{...
0
votes
0
answers
15
views
using both packages ltxgrid and pdfpages together rotates body text 90 degrees
I need to create a document with frequently changing between one and two columns and a lot of floats ((long)tables) and sometimes including a (multipage) pdf document.
When using ltxgrid and pdfpages ...
3
votes
1
answer
44
views
How to make a table of fixed width in tex4ht? (not fixed column width)
This is related to tex4ht only and not pdf. This is a problem that existed in tex4ht forever.
I just found in HTML that by fixing the width of the whole table, then the column width will remain fixed ...
2
votes
1
answer
39
views
How to get chapter title in header the same color when chapter title itself is in multiple fonts with different colors?
Assume I need to sandwich English words in chapter titles which are mainly in Burmese. I want those sandwiched English words in red color. However I want to have all the headers text only in gray ...
0
votes
0
answers
14
views
LaTeXiT not rendering png's/pdf's at receiver's end in Mail
I am using macOS Monterey and LaTeXiT’s version 2.16.4. I am facing the following issue when trying to use LaTeXiT in Mail.
Say perform the following sequence of steps:
Write a formula, say $x^ 2= 2$, ...
0
votes
0
answers
11
views
BiBlatex change printed fields based on entry type
Using the style authoryear I would like to on \footcite print only the URL and urldate for the @online entry types.
Is there a way I can adjust the printed fields besides changing the style?
Here a ...
0
votes
0
answers
22
views
How to apply a dynamic name for a key in DTLforeach*?
I want to create a new command to quickly get the amount of values of a filtered column.
My MWE is:
\documentclass{scrbook}
\usepackage{datatool,xstring,siunitx}
\begin{filecontents*}[overwrite]{PI....
2
votes
1
answer
57
views
NewDocumentCommand with embellishments does not work in superscript/subscript without braces
The following example
\documentclass{article}
\NewDocumentCommand{\K}{e{^}}{{\exp(\IfValueT{#1}{#1}n)}}
\begin{document}
These work \( \K, 2^{\K^{2}}, 2_{\K}, 2^{\K}, \log(\K)\).
These do not \( 2_\...
2
votes
1
answer
36
views
How to define a color that matches inserted PNG
I am trying to use cbox and have the colors equal to the colors on the inserted figure. I opened the figure using the windows paint program and used the color picker to determine the rgb values of ...
1
vote
0
answers
15
views
splot not plotting the graph correctly
This equation has to plot the point $(0,0)$ since when $x= 0, y=0$. But however I arrange the equation,it does not plot the point $(0,0)$.
Can someone help me with this problem.
\pdfpagewidth 85mm ...
0
votes
0
answers
19
views
MacTeX Problem: TexShop unable to find pdflatex in macOS Monterey
New user of MacTeX here. I'm on a mac running macOS Monterey 12.5. After installing MacTeX (and checking the package using the MD5 sum) I tried typesetting the LatexTemplate in TeXShop, but get the ...
-1
votes
0
answers
34
views
How I can do the list as bullet?
\CVSubheading
{TEACHING ASSISTANT }{Fall'2018 -Summer 2021}
{Tulane University }{New Orleans, LA}
\CVItemListStart
\CVItem{Metal Additive Manufacturing/3-D Printing(AFSD, FSAM)}
\...
2
votes
2
answers
34
views
Shifting leaf nodes to the right in forest
In the following tree the edges should hit the leaves above ha, en, and o. But due to the subscripts, the edges hit at the middle of the complete node.
I found a "solution" to the problem ...
2
votes
1
answer
34
views
Can I highlight an equal sign after a pause in beamer latex environment?
I am working on a beamer presentation with latex. I have a set of equations and I am wondering if there is a way for me to show all the equations and after a pause, circle the last equality sign to ...
0
votes
1
answer
43
views
How can I set pdfinfo based on content of external file?
How can I include the contents of an external file in the PDF metadata (either built-in attribute like Subject, or custom one like My ID)?
I have written some text to shell-output.txt with, for ...
0
votes
0
answers
16
views
Changing textcolor in revtex4-2
Since we are editing some article and in order to see everyone's contribution, we want to keep track of the changes by coloring text. However, \userpackage{colorx} and \textcolor{color} are not ...
3
votes
2
answers
442
views
Why does the same code give two different outputs?
I accidentally copied and pasted the same code right below it. But the output is different. The second one has a strange omega attached to the triangle inside the set. Why is that? I copied it right ...
1
vote
1
answer
22
views
Arrow symbol which is used to define a function. vertical line is attached to a tail (endpoint where no tip) of an arrow [duplicate]
I found the following arrow notation in the Type Theory and Formal Proof: An Introduction
How can I depict(draw) it using Tex?
I've browsed to find it but failed to.
0
votes
2
answers
22
views
Delete vertical and horizontal lines in both axis (tikzpicture)
I have the following figure:
And I would like to be able to remove all the stripes or lines on the axes, which I enclose in black. This is my code, I would appreciate your help.
\documentclass{...
1
vote
3
answers
47
views
colortbl: why does a double vertical line interrupt the background color?
Feeding
\documentclass{standalone}
\usepackage{colortbl}
\begin{document}
\(\begin{array}{l|l|l||l|l|l}
\rowcolor[gray]{.9}
11 & 12 & 13 & 14 & 15 & 16\\
21 & 22 &...
1
vote
1
answer
19
views
Curly quotes in lstlistings get moved to the start of words
I have a code snippet that uses the unicode character ’ (u2019), also known as right single quotation mark in the middle of a word. Unfortunately, it seems the lstlistings environment causes this ...
1
vote
1
answer
27
views
How to suppress newline in natbib refererences by editing .bst files
I would like to suppress the newline between different citations in the references. Typically, the references look like this:
[1] aaa.
[2] bbb.
I am looking for the following output:
[1] aaa. [2] ...
0
votes
1
answer
10
views
Insert tabular in footnote in beamer cause blank slides
In beamer, tabular environment in footnote cause unexpected blank slides. (I’d rather have overfull vboxs)
If you add another footnote, the blank slides are gone.
MWE (TeX Live 2022, XeLaTeX):
\...
-1
votes
2
answers
69
views
Can you help me use tikz to draw this figure?
I need to draw a figure but it is well beyond my skill set (I only used a little bit of tikz in the past and that was a long time ago). The figure I need is this one:
I would love to provide a MWE ...
0
votes
0
answers
25
views
What is the difference between file font.lua and the font itself?
When LuaLaTeX/fontspec uses a font, say Erewhon-Regular.otf, it creates a file erewhon-regular.lua that is put in (user's)Library/texlive/2022/texmf-var/luatex-cache/generic/fonts/otl/. Actually it is ...
1
vote
0
answers
39
views
Jake's resume cannot be compiled with LuaLaTeX or XeLaTeX
Jake's resume is a famous resume template, its link is https://www.overleaf.com/latex/templates/jakes-resume/syzfjbzwjncs
I want to modify it for Chinese characters, for example, change \section{...
5
votes
3
answers
394
views
Is there a way to extract x or y value of the local max and min points?
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1,0) -- (5,0);
\draw (0,-1) -- (0,3);
\draw[red, thick, samples=100] plot[domain=0.35:4.2]
(\...
1
vote
1
answer
19
views
cwl files not rendering autocompletion
I am using TeXstudio 4.2.3 on Mac.
So, I start with a blank folder and create an abc.sty file, defining some \newcommands. I then use that package in, say abc.tex file, that I create in the same ...
1
vote
1
answer
25
views
Ignoring some alignments
I'm struggling to display this kind of aligned expression in Latex :
expression1 = expression2
\implies expr1 = expr2
= simpler_expr2
I wanted to put aligned environement ...
1
vote
1
answer
60
views
How to change font from old pdflatex packages to new lualatex definitions
Lualatex allows to load fonts directly and without packages and other dependencies.
The problem I see is that the usage is well documented for pdflatex and the old style and not documented for ...
2
votes
4
answers
212
views
How do I left align the text and align these equal signs?
How do I left align the text and align these equal signs? As for the equal sign I used \, and it kind of works but I want to be more close. Is there a smaller spacing than this or any way to better ...
0
votes
1
answer
30
views
One of equations error
I'm writing mathematical paper in Overleaf. I use a lot of equation blocks, but one of them creates additional blank space over and under equation text - in sum 80-90% of the page. Here is the code ...
4
votes
1
answer
45
views
References to paragraphs
I'm writing a legal document, using article as the document class. The document is divided into numbered sections (\S). The sections themselves are divided into numbered paragraphs, which in turn can ...
1
vote
1
answer
22
views
How can I easily annotate callself with pgf-umlsd?
I want to draw a sequence diagram with pgf-umlsd package. I would like to make some annotations regarding the points in time and durations of certain calls and messages. This works well for calls and ...
1
vote
1
answer
33
views
Add PDF bookmarks to list of figures, list of tables, and figure and table captions
I want to bookmark my LaTeX-created .pdf file in two ways: in the \listoffigures and \listoftables and at the figures and tables themselves.
I started trying to apply Bookmarks under List of Figures, ...
0
votes
2
answers
52
views
How to properly typeset this table-like paragraph?
I would like to typeset the following paragraph:
What I can achieve so far is this:
\documentclass{article}
\usepackage{amssymb,csquotes,tabularx}
\begin{document}
\noindent
\begin{tabularx}{\...
1
vote
2
answers
39
views
Tagging Each Line in `aligned`
I want to combine the gather and aligned environments in the following way.
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{gather}
A = B + C + D + E + ...