Newest Questions
271,953 questions
0
votes
2
answers
28
views
Integral symbol
I have a problem with the integral symbol. Previously, it was perfectly straight and now it's tilted, even though I haven't changed my code.
Before:
Now:
Here are the packages I use:
\usepackage[...
0
votes
0
answers
28
views
Key value option for enumerate definition
Consider the following MWE:
\documentclass{article}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{enumitem}
\newlist{enumatlib}{enumerate}{2}%
\setlist[enumatlib]{
label=\arabic*,
...
1
vote
2
answers
21
views
Row colour problem with longtable, multicolumn and makecell
How do I get the rowcolor spanned for the entire first row?
\documentclass{article}
\usepackage{longtable, makecell, booktabs}
\usepackage[table]{xcolor}
\begin{document}
\begin{longtable}{m{0.1\...
1
vote
2
answers
39
views
expl3: l3file: \iow_now:Ne... doesn't expand tokens before writing to the stream?
MWE:
\documentclass{article}
\begin{document}
\ExplSyntaxOn
\iow_new:N \g__test_iow
\iow_open:Nn \g__test_iow { test.pl }
\iow_now:Ne \g__test_iow { \# }
\iow_close:N \g__test_iow
\ExplSyntaxOff
\end{...
1
vote
0
answers
23
views
saddle point trajectories
I am trying to graph the intersecting trajectories for a saddle point of a surface.
In particular, there are two curves which intersect this point. One is concave up, and one is concave down.
My aim ...
2
votes
1
answer
88
views
How do I cancel the exponent in an equation?
I'm trying to achieve something like this
I tried \cancelto but it doesn't look good. Is there a library for these kind of "special cancellations"?
Thank you all.
0
votes
1
answer
51
views
extract data from excell file [closed]
Well, I tried to understand your code or your code and I also consulted the tutorial indicated by cfr, and I admit that I don't understand anything and that it will take me a little time to master ...
0
votes
0
answers
51
views
Ai assisted latex editor
I want an ai native latex editor as switching between chat and overleaf is really annoying. Has anyone built this? The only one I see is lemmaforLaTex.com but its actually pretty good, curious if ...
2
votes
3
answers
91
views
Typesetting a more aesthetic continued fraction
In the following code, the quotient $\pi/4$ is expressed as a continued fraction. There is only one modification that I would like to be made. The diagonal dots at the end of the continued fraction ...
0
votes
1
answer
33
views
HowTo get standard paragraph indentation inside enumerate environment?
In the original document enumerated paragraphs are indented on their labels an continue flush-left on the page. TeX indents everything by default. How can I modify the provided code to produce the ...
0
votes
0
answers
16
views
Rescaling cumulative distribution function of Normal standard
I'm trying to plot the following cumulative distribution function $F(x) = \int_{-\infty}^x \frac{e^{-\frac{(t - \mu)^2}{2 \sigma^2}}}{\sigma \sqrt{2\pi}} dt$ with $\mu = 0.7071067810$ and $\sigma = 8....
1
vote
0
answers
38
views
p-type columns not working with colortbl
I want to make a table with fixed column widths and some coloured cells.
However, with colortbl imported (doesn't matter if I import it directly or using the table-option of xcolor), as soon as I ...
0
votes
0
answers
15
views
Read file paths from directory for inserting images [duplicate]
I'm trying to automatically include all images from a given directory, working with TeXstudio & lualatex. First, I tried it using \directlua or the luacode package in my .tex document.
\...
0
votes
1
answer
35
views
Automatically update a field value when the value of another field changes. eforms JavaScript
I have some eForms fields and I want some calculation in there. For example, when entering a number, double its value in another field. The problem is that the fields don't update automatically. To ...
3
votes
1
answer
74
views
circuitikz: How to find the dimensions (width, height, thickness) of a component?
I looked into pgfcircbipoles.tex and found values like \ctikzvalof{bipoles/capacitor/height}, but this seems to be factors (?).
How do I draw a line as long and as wide as a capacitor line?
\...
4
votes
1
answer
160
views
LaTeX: Matrix in Matrix
I created a matrix by this code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
A_{n+1}=
\begin{pmatrix}
a & \begin{tabular}{ccccc}
0 & 0 & \ldots & 0 &...
1
vote
0
answers
13
views
Typing enumerate symbol in beamer [duplicate]
When one does enumerate in Beamer, one can get numbers appearing as:
Is there a way to refer to them in that format? I.e., what if I want to reproduce those symbols in text that I write? (Even better,...
3
votes
3
answers
180
views
Command with `^^` and `__` as exponent optional arguments
In the following toy example, I would like to use __ and ^^ instead of - and .. Is it possible?
\documentclass[varwidth, border = 3pt]{standalone}
\NewDocumentCommand{\hyperseq}{ m e_ e^ e- e. }{%
$...
1
vote
2
answers
65
views
overlay latex on vector image
I am generating some complex plots programmatically. They are exported into PDF and use native PDF features.
However, I would like to (1) include them in a paper written in LaTeX, and (2) use LaTeX ...
3
votes
2
answers
80
views
Making sure that the figure is wrapped by the previously-written text
My doubt deals with the wrapping of text around figures in LaTeX. When I place a wrapped figure at the bottom of a page—like in the case described by the following code:
\documentclass[11pt]{article}
\...
2
votes
1
answer
30
views
Fit an item's text into exactly two lines (without changing font size) in Beamer
I want to allow text to go a bit into the right margin, or to reduce spacing a tad between letters/words, in order to fit text into exactly two lines (instead of three).
\documentclass{beamer}
\begin{...
5
votes
0
answers
43
views
There is a problem for triangles which are capable of partitioning eachother, which also coincide at one vertex. I am having trouble debugging it
I am writing a software which is supposed to take a set of triangles, where some of the members of the set are capable of partitioning one another, and performing all possible partitioning.
I built ...
2
votes
1
answer
56
views
how to make reference to theorem counter
This is a continuation of my previous question on manually increasing the theorem counter.
So I was able to manually increase and then access the theorem counter, but I am not able to make reference ...
0
votes
2
answers
70
views
Arrow Positioning in Tikz
I am having problems with arrow positioning in my tikz diagram. Please see my MWE:
\documentclass[11pt, a4paper]{article}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{...
1
vote
2
answers
113
views
xelatex data from Excell
Hello I made a test file in xelatex to extract numbers from an excell file, but despite two days of effort I couldn't fix the bugs.
Bug: For several orders, the last value of the extracted rows only ...
0
votes
1
answer
26
views
How to access and modify theorem counter
For various reasons I need to access the theorem counter, increase it by once manually, and then continue with the normal counter. Here is a minimal NON-WORKING example to show what I have in mind:
\...
3
votes
2
answers
121
views
Best Way to Insert "Blocked Notes” within Paragraphs
Consider the code:
\documentclass[12pt]{article}
\usepackage{graphicx,wrapfig,lipsum}
\begin{document}
\thispagestyle{empty}
\begin{wrapfigure}{r}{.20\linewidth} {\footnotesize{\textbf{\textit{This is ...
2
votes
2
answers
123
views
Tikz: Draw and connect node in one go
In using tikz, I often have the following situation:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\tikz\draw node (A) {A} node[right=of A] (B) {B} (A) -- (...
4
votes
2
answers
99
views
How can I control the horizontal and vertical space of an image using \llap in LaTeX?
I’m trying to control the horizontal and vertical positioning of a graphic inside another graphic in a beamer presentation using \llap. However, the \hspace{-2cm} and \vspace{-2cm} commands don't seem ...
0
votes
0
answers
31
views
How to make related entries print only a short reference instead of the full related entry?
I use biblatex/biber and want to control how related entries are printed.
By default, related entries should be shown only as short cross-references (e.g. “Alpha (1994)”), not as fully embedded ...
2
votes
2
answers
113
views
Why is my figure not evenly spaced?
How do i make my figure at the top row evenly spaced ? MWE below
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subcaption} % <-- correct package
\usepackage{booktabs}
\...
5
votes
2
answers
144
views
circuitikz: How to rotate the "component-labels" in normal alignment (for example ϑ↑↓)
Is there a package-like way to rotate the "component-labels" as like the others in normal alignment? For example:
\documentclass[margin=5pt]{standalone}
\usepackage{circuitikz}
\begin{...
0
votes
2
answers
52
views
Can we mix \newif's \ifname as in \ifgreen with \OR or \AND?
I created \ifCond1 and \ifCond2 with \newif.
If I want to test one condition, I use \ifCond1 Condition 1 OK \else Condition 2 KO \fi.
My question : is there a way to use \ifCond1 and \ifCond2 glued ...
0
votes
1
answer
58
views
different shapes of \Delta [closed]
is there a difference between the triangle meaning the difference of two close values
and the triangle meaning Laplace operator (sum of second partial derivatives)?
Thanks for your advice
Pavel
0
votes
1
answer
55
views
Creating a LaTeX Command with Conditional Arguments for Different Behaviors
How can I define a function call \StepFrame that accepts default arguments, as well as optional arguments for more complex behavior? I would like to define a LaTeX command \StepFrame that behaves ...
0
votes
0
answers
35
views
MiKTeX on Windows for writing a PhD thesis in Cyrillic alphabet
I am trying to write my PhD thesis in Bulgarian language using LaTeX (although I have very little knowledge about LaTeX and all its nitty-gritty) and currently I am trying to use a portable MiKTeX ...
0
votes
1
answer
47
views
memoir: Chapter TOCs (Part 3)
This issue is related to memoir: Chapter TOCs (Part 1) and memoir: Chapter TOCs (Part 2).
After implementing a partial TOC (Chapter TOCs), I need to format it differently from the main Table of ...
0
votes
0
answers
25
views
Fomatting titles in PDF Index / Outline [duplicate]
I am looking for some guidence on styling the pdf "index" that hyperref generates. I am talking about the sidebar that lists sections in a document:
Evince calls it an outline rather than ...
0
votes
0
answers
54
views
Awkward scaling in figure [closed]
I am working on my first publishable paper and I'm having some trouble getting the scale right. I am using matplotlib and python to create my figures. I tried keeping everything at true scale, by ...
2
votes
0
answers
29
views
Best approach to include CJK characters for submission to arXiv
The arXiv platform does not support XeTeX. So pdfLaTeX seems to be the only option. Usually ctex package works well. However ctex has no default font for pdfLaTeX on Linux. I suppose the arXiv ...
2
votes
1
answer
40
views
float placement bottom of subcaption on separate page
I used the subcaption package in the past to format two or more images next to each other in a single figure float environment and it worked as expected. Now, I try to use it again but cannot get a ...
0
votes
0
answers
34
views
How to wrap text around a custom float environment (video) while keeping proper float placement (top/bottom)?
I have a custom float-like environment called video, which I use to typeset video thumbnails, captions, and links. I need to wrap text around this float, similar to wrapfigure or floatflt, but still ...
4
votes
2
answers
103
views
How can I draw a bond that overlaps/obscures another bond using `\usepackage{chemfig}`?
In other words, how can I draw the dashed red bond in the following figure?
I know that the following workaround works:
\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{
...
2
votes
2
answers
66
views
I can't use xltabular in a multicols environment
How to use xltabular in a multicols environment?
\documentclass{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage[indonesian]{babel}
\usepackage{lipsum,multicol,erewhon}
\usepackage{...
1
vote
0
answers
21
views
+50
Custom Nested List in Beamer
I would like to create a custom nested list environment in Beamer that automatically becomes the default list style for every frame, so that I can place all the definitions in the preamble instead of ...
2
votes
0
answers
72
views
Problem with the option 'lang=fr' in \DocumentMetadata?
This code
\DocumentMetadata{lang=fr}
\documentclass[10pt]{article}
\usepackage{babel}
\begin{document}
\begin{itemize}
\item a
\item b
\item c
\end{itemize}
\end{document}
gives an ...
3
votes
1
answer
142
views
How can I make an oversized display-math expression break or wrap in LaTeX?
I’m writing summary notes in LaTeX, and one of my equations is too long to fit on the page. I tried using aligned, multline, split, and even putting parts in \parbox, but the long expression still ...
0
votes
0
answers
26
views
aligning an element at the top tabular [duplicate]
I don't know how to put the "solution" at the top of the column. Here is my code. Can anyone help me?
\begin{tabular}{c|c}
\input{picture}
&
solution
\end{tabular}
%the picture ...
8
votes
2
answers
160
views
Randomize an enumerate list containing lstlisting
I would like to create a randomized enumerate list whose items may contain lstlisting environments. So far, I can successfully randomize ordinary items, but items containing a lstlisting environment ...
-2
votes
0
answers
23
views
you have an array with n values write an algorithem that biuld a 2-3 tree with those n values [closed]
a 2-3 tree is n m tree when m=3