# All Questions

234,543 questions
Filter by
Sorted by
Tagged with
7 views

### Drawing a Pyramid within a Rectangular with Arrows and Text

I want to draw a DIKW Hierarchy diagram exactly as is in the picture below: How can I do it with tikz?
• 19
6 views

### How can I use Arial narrow in the VSCode?

I use VSCode along with MiKTeX. Although XeLaTeX and LuLaTeX seem to be installed when I checked on MiKTeX, I cannot use \fontspec package to use Arial Narrow. I would appreciate it if you could help ...
• 33
15 views

### Changing the Default Vertical Page Position for a group of New Chapters with Patchcmd Command

I am using the patchcmd command in the preamble to specify a vertical position default for where new (unnumbered) chapters should begin on the page: \makeatletter \patchcmd{\@makeschapterhead}{\vspace*...
• 345
9 views

### Place figures after the cross-reference

Is there a way to make sure figures and tables appear after the cross reference? I'm 100% sure I have read that a package has got the option to do exactly that, but I can't recall for the life of me ...
• 336
14 views

### PGFplots/groupplots/tikz use whichever is lower: xmin or data

I'm making a lot of plots with pgfplots/groupplots/tikz from csv files, using \addplot[...] table[...]{file.csv} or \nextgroupplot[...] table[...]{file.csv} Some files have both positive and negative ...
• 101
17 views

### how i can organize this data

\begin{minipage}[t]{.3\linewidth} الشعبة : تسير و اقتصاد \\ السنة الدراسية : $2022-2021$\\ دورة المراجعة \\ اعداد : بن بارك محمد رضا \end{minipage}\hfill \begin{minipage}[t]{0.3\linewidth} \begin{...
13 views

### APA spanish citation for default

I am trying to cite my document with apa 7th and it run perfectly but the cites are in spanish for example the conjunction "and" is replaced "y" and "et al." replaced for ...
27 views

### Drawing Hasse diagram on Latex

I am currently trying to draw the following hasse diagram on Latex. From my understanding, I think I should be using the tikzcd package but having trouble getting understanding how it works. I would ...
25 views

### Create a template for exam

I want to create a template for exams such as this one and in first step, I want to create this page header : Any help is welcome.
• 103
15 views

### How can I put chapter number and chapter title in one line in memoir?

I want to put chapter number and chapter title in one line and i found this code that works well: (Chapter number and chapter title in one line) \documentclass{book} \usepackage{titlesec} \titleformat{...
21 views

### MathJax code is working in the math and physics stack exchange but not working in GitHub [closed]

The following code is working perfectly fine in the math and physics stack exchange but not working in Github even though it is using the same MathJax. What is the problem here? \boxed{ \begin{...
19 views

### how to define semantic logic "implies" and "not" operators for use in LyX

In Schechter's Classical and nonclassical logics, he distinguishes symbols at the semantic level, from those at the syntactic level, by encircling the operators. For example, formal logic uses "∧&...
• 111
37 views

### Tabularray with footnotes

I'm almost done switching to tabularray but have just one final problem to solve. Using \footnote inside tblr doesn't work properly, but it's a known problem with most (all?) table-like environments. ...
• 822
10 views

### Create Pgfplot from long data table with multiindex

I want to use Pgfplot to plot the csv-data in the following form: The Problem is, that the Data is saved with a multiindex. So in the end the x-axis shall show the Steps, and the y-axis the Preis_kwh ...
17 views

### Page break with minted: code gets out of background

I'm using minted for displaying C++ code. If there is a long line at the bottom of the page, the line breaks as expected. Unfortunately there is also a gray arrow to indicate the line break. How can I ...
10 views

### Biblatex \citeauthor style (number of authors and remove et al. underlining)

I am using biblatex to get the \citeauthor command. However, I wish to edit the output of that command and have not yet found how to achieve what I want. I'm importing biblatex as: \usepackage[ ...
20 views

### includegraphics in tikz node disappears when compat=1.3 changes to compat=newest

I have a tikzpicture where I draw a plot and add two png files on top of the plot. I add the png files with \node at (400,90) {\includegraphics[width=4cm]{figures/time_series/texas.png}}; When the \...
• 101
24 views

### How to judge if an argument in tcolorbox is blank?

I'm defining a tcolorbox environment with xparse library. \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{xparse} \DeclareTColorBox[auto counter, number within=section]{mybox}{g} {...
• 1,119
22 views

### Formula with superscript cut from header in Beamer

I am using Beamer and have a formula in the subsection headers. It contains a superscript but it is partly cut from the headers. I am using the seagull theme. What can I do to show the superscripted ...
• 31
58 views

### Hyperrefs from scatter plot to text

Using this example for a scatter plot, I hacked together a working plot for my document. To perfectionize my plot, I would like to have each plotted point (circle or square) to also be a hyperlink to ...
1 vote
27 views

### How to create a cross-reference to a section in the appendix? [duplicate]

I want to cross-reference an appendix in my LaTeX document. The appendix is defined as follows: \usepackage{cleveref} \appendix \section{title1} \label{label1} \section{title2} \label{label2} How to ...
• 11
23 views

### aligning two elements per row in an align environment

Is it possible to align the first and second equal signs respectively in each row (as in )? I've been trying to find answers but not luck yet (I am a beginner). Thank you! Here is the my current code ...
11 views

### How to add the corresponding author on the latex template of Lecture Notes in Computer Science (LNCS)? It is identified by a envelope sign?

Please, How to add the corresponding author on the latex template of Lecture Notes in Computer Science (LNCS). The corresponding author is identified by an envelope sign within the bracket just after ...
1 vote
24 views

### Tikz-Feynman diagrams overlapping in subfigure

I want to show three Feynman diagrams next to each other. I use the subfigure environment. However, the vertex labels of the 2nd and 3rd diagram overlap. I tried to use the [scale=0.5] argument to ...
• 429
10 views

### Tikz image resizing + externalize to eps in standalone

I have a tikz image that I want to resize (with \resizebox) and then export as .eps. The PDF file that is generated by pdflatex has the correct dimensions from resizebox. However, the PDF generated ...
• 47
18 views

### How do I disable scrollmode in Tex Maker?

As answered by David Carlisle in this thread: Texmaker - Where to type 'H' for help? David states that \scrollmode is on not allowing the user to interact with the error message after the ...
1 vote
15 views

### How to change the color of the title separator line in the title page in beamer?

I'd like to change the color of the orange horizontal line in the title page of a beamer presentation based on the metropolis theme. \documentclass{beamer} \usetheme{metropolis} \title{How to ...
• 659
1 vote
17 views

I'm working with in the Overleaf environnement. I have a problem with the length of my minted codes and don't know how to solve it: I used a simple code called "test.m": function [x] = test(...
1 vote
32 views

### How to reuse a specificall PSTricks figure with pdfLaTeX?

I have to use a preamble (see below) which is outdated (and, in my opinion, clogged with garbage). My task is to set up the given preamble for using with pdfLaTex, and if possible to clean it from ...
• 2,262
1 vote
17 views

### Alternating page numbering using fancyhdr

I have a question regarding alternating page numbering using fancyhdr. At the moment I'm using \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \rhead{\leftmark} \rfoot{\thepage} \hypersetup{ ...
• 11
1 vote
28 views

### Unwanted Extra Pages for Koma Script Title Pages with Graphics

Komascript. Book class. I'm trying to use a graphic on (as) my title page but it throws two extra empty pages that I can't get rid of. The order should be: 1-half title page 2-title page 3-lower title ...
• 1,667
21 views

### multiple bar in horizontal bar chart in latex

I am trying to show a performance comparison of the different machine learning models by multiple bars in a horizontal bar chart in latex. I have tried the following code: \begin{figure*}[!tbp] ...
21 views

### "Package inputenc Error: Unicode character ^^S (U+0013)" while citing an article

I am getting the error Package inputenc Error: Unicode character ^^S (U+0013) while citing an article in overleaf. The minimal code and the bibliography are provided underneath: \documentclass{revtex4-...
28 views

### Text appearing after table overleaf

I have some text, that should appear before a table, but instead appears after. Do you have an idea why this is happening? \section{Difference between serverless functions and containers} Container ...
35 views

### How to fill a region between lines and a curve in tikz?

I browsed various questions but I cannot find what I need. I started using tikz yesterday, so I am very confused and my code is horrendous. I am drawing a Penrose Diagram. This is where I am at: \...
22 views

### Create an arrow that points to an item [duplicate]

Is there a way to create an arrow in an itemize environment? What I would like to do is shown in the drawing below.
15 views

### BibTeX - bst file - You can't pop an empty literal stack for entry Hirt1974; while executing---line 2291 of file WileyNJD-APS.bst

I have customized the bibliography style file (WileyNJD-APS.bst) and compiling the bibtex getting the following errors. I am unable to identify the bibtex error and could you please help me to resolve ...
26 views

### Add label function to graph

I'm trying to add the label $y=x^3$ to the graph of the function using node but instead of placing it "above right" it appears "below left" for a reason I don't understand \...
61 views

### How to draw a path alternating in background and foreground?

I would like to draw a spring which "wraps" arround a bar, meaning every alternating line should be drawn on the background. Is is possible to define a tikzstyle for this? \documentclass[...
• 1,629
19 views

### Figure reference number refers to section number and not to figure

I want to have the reference number of the figure referring to the figure number (1) and not the subsection number (1.1). What shall I do? Here is the output: Here is the code: \documentclass[a4paper,...
• 779
18 views

### Place my own custom package in a different folder

I have made my own LaTeX package, which I want to store in a different folder then where the main .tex file is. Like so: /folder/latex_settings/preamble.tex /custom_latex_library....
18 views

### MastersDoctoralThesis template - how to turn off page number on a specific page?

I am using this template (MastersDoctoralThesis) I want to add a page right after the cover with some information on the book - and I don't want to show the page number on that page, but my current ...
150 views

### Small position discrepancy in tikz

I was drawing a small diagram with tikz, and I noticed there is a small discrepancy on the position of the nodes according to how you define their position. Here's the MWE: \documentclass{article} \...
• 480
1 vote
16 views

### Numerical citation using "unsrt" bibliography style out of order

As part of my thesis, I have a main file which imports individual chapter files using \input{}. However I am noticing something very strange with my chapter files. When I cite in the document itself, ...
30 views

### How to use different counters / tablenames for table and longtable?

What I want: Table 1: table content … LongTable 1: longtable content … What I get: Table 1: table content … Table 2: longtable content.... example: \documentclass{article} \usepackage{longtable} \...
19 views

### Wrong page number in TOC for endnote

When I set the list heading of an endnote part to \chapter in order to have a page break, it occur a bad pagenumber of the endnote part in the TOC. MWE \documentclass{book} \usepackage{lipsum} \...
• 2,080
1 vote
43 views

### A pyramid with square base using latex [duplicate]

I have to draw some shapes to remind my students of the rules for volumes. Please, I want to draw a pyramid with a square base, can anyone help? (V=1/3 x y h)
• 11
122 views

### Make tikz matrix of nodes uniform

I want to create a diagram with a couple tables and arrows/braces to describe what changes between the table as different functions are applied to it. However, when creating a table with matrix of ...
• 163
42 views

### Align tcolorbox in center vertically using overlay

In first slide, tcolorbox is aligned vertically center. But in second slide, unable to align the tcolorbox properly. \documentclass[fontsize=10pt,landscape,parskip=half]{scrartcl} \usepackage{scrlayer-...
• 7,496