All Questions

237,861 questions
Filter by
Sorted by
Tagged with
1 vote
62 views

I am trying to define a custom section levelOne using its own counter. While everything works but I fail to make it appear in the table of contents. My code is given below: \documentclass{article} ...
118 views

How can I use more colors in TikZ?

There are only white, black, red, green, blue, cyan, magenta, and yellow. How can I add others? (I would like to use Green (different from green).)
60 views

How to draw three-phase transformers like the one in the picture?

How to draw three-phase transformers like the one in the picture? I managed at most to make this code, which produces: \documentclass{article} \usepackage{circuitikz} \usepackage{...
31 views

Error with inputenc and Unicode character

Package inputenc Error: Unicode character а (U+0430) Here is the equation I'm trying to write: \ G_{S} [i,j]=Ce^-{{ \frac{(i^2 + j^2)}{2\sigma^2}}} \sin({2\pi f(i\cos \theta + j \...
32 views

I need help with latex tiKz code for drawing 3 graphs on the same plane with nodes

I am relative new on latex, I therefore request somebody to assist with a code of drawing three graphs (see attached picture): Below is the MWE: \documentclass[12pt]{article} \usepackage{syntonly} \...
121 views

Bolder Blackboard bold

I am looking for bold versions of the blackboard bold letters. Unfortunately, the best symbols I have come up with so far are hard to distinguish from the usual blackboard bold letters. Is there a way ...
62 views

Does \ifx compare conditionals differently than other tokens?

I'm getting an unexpected result with parsing loop that uses \ifx. My understanding is that, for control-sequences, \ifx looks for "top level" equivalence and the same modifiers like \long. ...
1 vote
3 views

Different exponent formatting for x and y axes in pgfplots

I know it's possible to format the exponent of the log axis tick marks using log plot exponent style, but this affects both the x and y axes. Is there a way to give different specifications for each. ...
6 views

Place algorithm environment directly under sections/subsections

Algorithm environment is placed wrong, not in the place I want it to be (directly under subsection statement). I am aware of popular answers about the problem like using float package and [H] ...
70 views

listings package line-breaking issues, with Unicode characters

When I use listings, to display code with Russian comments, in a literate block, I obtain invalid line-breaking, on whitespace characters. Please refer to the below MWE, for an example, which compiles ...
1 vote
167 views

Recovering Latex Compilation Errors

I have a program to write a text and when I click on the 'compile' button, it compiles to latex, converts to pdf and displays it on my application. The problem is that when I have a compilation error, ...
2 views

Cannot decipher unbalanced body or paragraph tag issue using make4ht

I cannot figure out why make4ht conversion gives a DOM parsing failure. System: macOS with TeXShop via TeXLive-2022 (all latest versions recently updated) MWE with all configurations (in case a ...
10 views

Side-by-side captions in minipage run too long, don't wrap to second line

I'm writing some proceedings based on the style guide here. I have two images which I want to place side-by-side in my article, but when I do, the captions don't wrap onto multiple lines but overlap ...
29 views

pgfplots - color part of bars above given value different colour

I have written the latex commands below to produce a bar plot shown in the screenshot. What I want to do next is to colour each of the highlighted tip of the bar with a stronger colour as shown in the ...
22 views

Iterate through the tokens of a list not known in advance (\@for + \csname)

If I want to iterate through the tokens of \myList I can simply do \def\myList{one,two,three} \makeatletter \newcommand{\iterateThroughMyList}{% \@tempswafalse \@for\next:=\myList\do{% ...
1 vote
74 views

creating random numbers in a tikz diagram for use in a formula

I would like to create a worksheet similar to this https://pastebin.com/fSuS4C9f but for circumferences of circles not to bothered about the answers section at the moment but I can't even get the ...
112 views

Make Title Error

I'm new as a user of LaTeX and my doubt might seem fool, but here I go. I'm facing the following error message after running my script: "Package inputenc Error: Unicode character (U+000B)(...
22 views

Automatically generate two-page index entries

I'm writing a text where there will be several index entries for short biographies. The index entries for persons are supposed to be in small caps and the biography entries will get page numbers in ...
21 views

Fancyhdr not working in TeX Live

I have recently added the fancyhdr package (v4.0.3, i.e. latest version) to my application code and it works on Windows 10 with MiKTeX (current version). My application always worked also on Ubuntu 20....
1 vote
40 views

How can I number figures and tables by chapter in LaTeX?

I have been trying to label my figures and tables in LaTeX according to the number of the chapter. For example, the second figure of the first chapter should be Figure 1.2. Currently the numbering is ...
9 views

adding currency symbol to "Einzelpreis" in rechnung.sty

I am using the rechnung.sty package to write invoices and would like the currency symbol to appear no only in the "Gesamtpreis" column but also in the "Einzelpreis" column. From ...
245 views

I have quite a long Table of Contents in which I first add the entries for List of Figures, List of Tables, and Abbreviations. However, the entire toc goes over one page. Thus, I would like to reduce ...
22 views

Font specification works in XeTeX but not LuaTeX

I am writing some package code that will select the Montserrat family of fonts. I downloaded and installed the zip file of fonts available here. Here is an MWE: \documentclass{article} \RequirePackage{...
26 views

TikZ-Feynman line with mixed styles

I'm trying to draw Feynman diagrams like the ones in this article with tikz-feynman: I don't know how to make these edges that switch from straight to wiggly. I suppose I could break them up as two ...
1 vote
68 views

Section and subsection numbering within beamer presentation

I am trying to replace "Section 1" and "Subsection 1" with their corresponding numbers just before the section's and subsection's name. That is: "1 This is the first section&...
24 views

How to automatically wrap lines with multicolumn and longtable?

How can I automatically wrap lines in longtable with multi column? Below is my code, which doesn't wrap. Also, how can I decrease the font size? \documentclass{article} \usepackage{longtable} \...
28 views

How to have fixed, consistent and uniform whitespace around captions

I want to have my tables, figures, and listings have the same amount of white space above or below captions. At the moment space is different for tables, figures and listings. I am looking for a ...
33 views

Converting bitmap diagrams into TikZ

I have some basic experience with LaTeX and used it to help publish the below volume, and others… Hardback: https://www.amazon.co.uk/Chris-Langans-Major-Papers-1989/dp/097191625X/ The hardback edition ...
214 views

Title too long in Beamer presentation

I have a long title for my presentation that goes out of the frame. If I try to separate it with '\' then the second line has a different format as the first line. I think I should change settings but ...
27 views

How to draw a neural network vertically [closed]

I'm looking to create something like this in TikZ environment. I have checked the neural network package, but I think it can't do it.
74 views

Looking for how to draw that diagram in TikZ

I'm looking to create something like this in TikZ environment. Im kind of stuck with the relations to each other: it seems weird, positioning one below the other, when unsure if all the block will be ...
1 vote
102 views

Using cleveref for referencing amsthm objects in beamer

I am a beginner with amsthm, and I'm using cleveref for referencing the theorem s/definitions/lemmas. BTW, all of this is happening in beamer. On using \Cref{label} for definitions, lemmas, and ...
41 views

How do I reduce the space between column-pairs of the following equations

Below is my MWE: \documentclass[11pt,oneside,openany]{book} \usepackage[a4paper, left=1.5cm, right=1.5cm, top=3cm, bottom=3cm]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \...
56 views

How can I use \lstdefinestyle in a subfile?

Assume that main.tex is my main compiled latex file. The rest of them (as sub.tex) includes the list of def ones in order to arrange each chapter, subchapter etc. How can I use defined style in main....
1 vote
41 views

Random number shows up in cross-reference

I'm looking to cross-reference a table located in the appendix while inside the section before the appendix. When I do this, however, it says "Tabelle 2 6" instead of the desired "...
1 vote
28 views

How to count subsections and subsubsections without giving them a title

I have a document which I want to recreate in LaTeX which has numbered subsections and subsubsections, but they have no titles, just text. How to make that in LaTeX? Currently I'm using the tufte ...
2k views

I've already tried to follow the answer here: How to change the title of ToC? by using \renewcommand{\contentsname}{Whatever} However, it does not seem to work with LyX, neither in the preamble nor as ...
1 vote
82 views

How to make bold numbers in Beamer using Madrid theme?

I am writing a presentation and using the BEAMER mode in the MADRID theme. This is my preamble: \documentclass{beamer} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
29 views

Table error: misplaced \omit

I'm trying to create a table, but I ran into a problem with Misplaced \omit. \sp@n ->\span \omit \advance @multicnt \m@ne` This is my code: \documentclass[11pt]{article} \usepackage{...
1 vote
29 views

Memoir removing chapter numbering but keeping appendix numbering

I am creating a labbook for which the \part is the year, the \chapter is the month and the \section is the specific day. This is how my document currently looks: I managed to get rid of the chapter ...
411 views

Using Inkscape-generated figures in LaTeX document: How to make process more efficient?

I use LaTeX to type up lecture notes for math and physics, and I use Inkscape whenever I need to generate graphics for them. I want to find a faster method for doing this. Currently, I do the ...
95 views

Using tikz to draw a rectangle with black-white gradient in form of Gaussian

I want to make a rectangle, longer horizontally than vertically, that is black at the left and right ends and whitish in the center. I don't want a linear gradient change from black to white (and back)...
1 vote
52 views

Set first-line indent in custom-made enumerate-like environment

I want to create an environment for list items. I do not want to have these items as part of an enumerate, because I would like to be able to put anything between these items. So far I have been ...
46 views

Redirect tex.print output to a file

I want to redirect tex.print output to a file to collect and reuse the produced LaTeX material : the mwe : \documentclass{article} \begin{document} essai \directlua{require("essai.lua")} ...
33 views

Convert LaTeX to Word with Pandoc, including citations and bibliography

I'm trying to convert a LaTeX document ("latex-to-word.tex") to Word using pandoc. Unfortunately, I cannot print neither the reference list nor parenthetical citations in the Word file. I'm ...
33 views

Working with geometry and fontspec packages under the bookcover package

Problem Description The following code from page 30-31 of the bookcover package documentation can run only under pdflatex as suggested by one of the comments in it: \documentclass[ coverwidth=150mm, ...
3k views

Generate .sty file from CTAN zip

I want to install a new package to my Tex environment, as an example Colortbl from CTAN. The issue is I am behind a firewall at my company so I cannot download it through my tex environment. Going ...
23 views

Wasn't there a way to cite multiple chapters of a book referencing the book's entry rather than redundantly repeating information?

I vaguely remember but can't find on line that there was some "correct" way to cite multiple chapters in the same book. First you would enter the book as a book, then you would reference ...
61 views

How to create a LaTeX template for writing a mathematical article?

I have to write a mathematical article that includes Theorems. I want to write in such a way that my paragraphs span the whole page. I am attaching the image which I would like to replicate in my ...