All Questions

0
votes
0answers
4 views

Illegal pream-token error

I'm facing an error while compiling and have already included the necessary packages. O want the three columns to be 15 % 70 % 15% respectively and the first two left aligned with the third right ...
0
votes
0answers
4 views

Changing fontsize within osx-presentation

This question is based on the second answer from Is there a nice solution to get a "presenter mode" for Latex presentations? where the author of the answer wrote a tool called osx-...
0
votes
1answer
11 views

Can't make font (of different family from main) bold in new environment

My document's main text is set as follows: \renewcommand{\familydefault}{\sfdefault} % sans serif to default \usepackage[defaultsans,osfigures,scale=1]{opensans} % change main font here So ...
0
votes
0answers
11 views

Left aligning LaTeX bibliography display

I have problem on how to make the bibliography item left-aligned. My current bibliography output is below. As you can see, the reference item code is currently right-aligned, and I need it to be left-...
0
votes
0answers
18 views

Place `tikzpicture` on the left of the text

Background I’d like to write a LuaLaTeX document for the Roman Catholic Liturgy of the Holy Week (from the Psalm Sunday through Easter Sunday). I do this in Slovak language (here’s a pdf that uses ...
0
votes
0answers
12 views

csvsimple respect dollar not working

I'm using csvsimple to import some columns from a csv file into a tabular environment. The CSV file contains a column where all the values are dollar amounts, so just including it directly gives ...
0
votes
0answers
24 views

Why PStricks requires XeLaTeX to compile?

Why PStricks compiles only with XeLaTeX engine and not PDFLaTeX. When I compile with PDFLaTeX I get the error that PDFLaTeX is not able to find package pstricks.
0
votes
2answers
22 views

Resize font size in Latex table when using \resizebox{\textwidth}{!}

I am trying to increase the font size of the text in this Latex table to make it easier to read, while also fitting it to the page using \resizebox. How do I proceed? Here is what I have already ...
1
vote
1answer
9 views

Getting bounding box of axis and colorbar

I want to place my legend centered above the axis and colorbar, but I can't find the correct bounding box. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
0
votes
0answers
12 views

Insert Fullscreen PDF rotated 90°

I have a PDF in landscape and would like to add it to my thesis just as it is in the picture below. It needs to be on the fullpage and I would like to add the caption directly in the middle over the ...
0
votes
0answers
9 views

All comments in the review side bar are now at the bottom rather than on the correct words

I accidentally pressed cut instead of copy on my entire section in overleaf. And when i re-pasted it in the comments are now all at the bottom rather than on the specific part i was commenting on. ...
2
votes
2answers
17 views

Additional legend (entries)

As my colorbar contains only few values, I want to use further legend entries instead of a colorbar. How can I (1) add additional entries to the existing legend or (2) add a second legend, which ...
1
vote
1answer
20 views

formula and a table in align environment

I need to type formula and table in an align environment like but I only could prepare \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{diagbox} \...
1
vote
1answer
19 views

Use name of referenced object as argument of string comparison

I have argument #1 which contains some text X representing some label. I would like to use \str_if_eq to compare X and name of paragraph referenced by this string. What I want to achieve is that if \...
2
votes
1answer
24 views

Add kerning correction before capital V

Kerning correction works if the capital letter is in front of the small letter. The other way round spaces seems uneven. Take for example the space between the e and V in the word PeVatron. It seems ...
4
votes
3answers
99 views

Is there a possibility to generate a list dynamically in Latex?

As stated, I wonder if there is any possibility to dynamically add items to a list and print it anywhere in the document, regardless of where the definitions are made. I'm thinking something like ...
3
votes
2answers
37 views

Change font size in Table

How do I change the font size in my table? I have tried the \normalsize and \small commands, but it doesnt make any difference. I needed to specify column length to get the design I wanted, does ...
-2
votes
2answers
51 views

How to do it in latex

I am doing my semester thesis, but I have no idea how to do young tableaux in latex.
2
votes
2answers
23 views

How to arrange the flushleft and flushright beside each other?

\documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{graphicx} %% Header Footer \usepackage{fancyhdr} \pagestyle{fancy} %\fancyhead{} \fancyfoot{} \fancyfoot[R]{ \thepage\ } \usepackage{...
0
votes
1answer
23 views

Defining pages of a document

I have formatted one page of my document in a particular way. (including alignments) Now I want to have that particular setting for every page of my document. This would have been very easy if the ...
0
votes
0answers
27 views

MiKTeX won't download ogonek package

My MiKTeX won't download the ogonek package. I went to the A-Z list of MiKTeX packages, and ogonek isn't there. Should it be? FYI, I know that my MiKTeX automatically downloaded ogonek at some point. ...
2
votes
4answers
42 views

how to write given equation? [duplicate]

I want to read an equation in latex, this is my code: $$ \left \{ \begin{array}{l} \hat{p}=1/N \sum_{i=1}^{N} I_{i} \\ \begin{split} \mathrm{Var}(\hat{p})= & 1/(N^2) \sum_{i=1}^{N} \sum_{j=1}^{N}...
2
votes
1answer
80 views

Latex trimbox figure?

I wonder if it is possible to have a trim box in latex that can trim figures? For example using latex trim, I know it's possible for example to trim the top of a figure (see left figure down below). ...
0
votes
1answer
18 views

TeXstudio fails to compile a Nature template

I have downloaded a template for Nature article from Sharelatex (from here), but when I try to compile it using TeXstudio or TexMaker it gives me this error message: File `nature.cls' not found. ^^M ...
4
votes
1answer
248 views

Beamer - mp3 - file does not play

For a presentation I need to add a mp3 file. I already followed all steps in the Q&A at How to include multimedia files in beamer. My followed MMW does compile but do not deliver any sound at all. ...
1
vote
1answer
37 views

Tikz rectangle in perspective

I would like to draw a rectangle in perspective which looks like this \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,1) -- (0,3) -- (2,5) -- (2,3) -- cycle; \...
1
vote
0answers
25 views

Implement METAPOST in Blockly

Has anyone looked into this? Blockly is a visual code editor developed by Google: https://developers.google.com/blockly/ and at least one graphical language, OpenSCAD has been implemented: https://...
1
vote
0answers
14 views

Smallcaps disappearing in tex4ebook compilation

I am using smallcaps to mark certain direct speech (essentially uttered by non-human entities). I use it almost exclusively through the following macro: \usepackage{quotmark} \newcommand{\gqt}[1]{\...
1
vote
0answers
20 views

Custom quote environment: Opening curly quote at the start of every line

What would be the recommended method to customize the quote environment such that every line starts with, say, opening curly quotes on the left margin. Something like \documentclass[12pt, oneside]{...
2
votes
2answers
112 views

Tikz - create rectangle with same width as the picture

I have the following MWE: \documentclass[]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,fit,shapes.geometric,calc,backgrounds} \begin{document} \begin{tikzpicture} % Headers \...
6
votes
2answers
334 views

How to begin with a paragraph in latex

I am writing my B.Sc. report. Here I have write a part of introduction. but the problem is I want begin the sentences with a gap like... **
2
votes
1answer
19 views

Color a table with toprule and cmidrule [duplicate]

I have created a table in the following way: \documentclass{article} \usepackage[table,xcdraw]{xcolor} %Tables \usepackage{array,multirow} \usepackage{booktabs} \begin{document} \begin{table}\...
1
vote
0answers
14 views

Adding space to subreference

Consider this example: \documentclass{report} \usepackage{subfig} \begin{document} See Figure~\subref*{sf1} for more information. \begin{figure} \centering \subfloat[Subfig 1]{\label{sf1} Contents of ...
0
votes
1answer
10 views

make distance between acronym and description

i have a problem with my glossaries format. Is it possible to make a distance (hspace) between the acronym or symbol and their description? now, it is something like that: Bsp. Beispiel Another ...
0
votes
0answers
18 views

Specific PDF not viewable in TeXstudio

PDF produced from the following example, by Xe- or LuaLaTeX, is not viewable in (internal pdf viewer of) TeXstudio. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0, ...
-2
votes
0answers
32 views

How write “ANSYS” in LaTeX with the original font? [on hold]

How can I write "ANSYS" with the original font in LaTeX? Thank you in advance.
-2
votes
0answers
42 views

How to get “c++” symbol in Latex, namely original font of c++? [duplicate]

How can I write "c++" with the original font in LaTeX? Thank you in advance. EDIT: here the official logo:
0
votes
0answers
38 views

package inputenc error unicode character − (u+200E)

Two tables in TexStudio are having the error: package inputenc error unicode character − (U+200E)not set up for use in LaTeX. Anybody knows what the exact problem is? My first table is and the error ...
2
votes
1answer
31 views

Writing Content in the aux files without expansion

I'm creating the XML from the TOC files, in this process I'm finding issue. on looking into the files there are many commands are getting expanded while writing. for example \hat has wrote in \...
-1
votes
1answer
43 views

Writing MATLAB with the original font in modernCV [on hold]

I'm wondering if I can write MATLAB with the original font in my CV using class moderncv: Thank you for your willingness.
0
votes
0answers
23 views

Missing number treated as zero error coming for a specific line irrespective of the command which is entered there

\documentclass{article} \usepackage{eso-pic,xcolor} \renewcommand{\baselinestretch}{1.2} \hbadness=99999 \setlength{\parindent}{0.9cm} \begin{document} \begin{center} \topskip0pt \vspace*{\fill} \...
0
votes
0answers
13 views

padlatex: too long time for compilation of file with chinese symbols using ctex package

I'm usign pdflatex for technical reports. Until now I used it wihout chinese language and everything worked well. But now I need to add chinese language. I found here information how to do this: How ...
0
votes
2answers
24 views

How to avoid additional page getting rotated?

I am trying to get all sidewaysfigures automatically rotated. But for some reason I get an extra rotated page (see code and screenshot below). How can I avoid this? \documentclass[oneside]{scrbook} %...
0
votes
1answer
37 views

Fitting table into page while not ruining the caption

I have to fit this table into a page. Using adjustcode failed since it made the caption stuck onto first cell of the table instead of spanning on top of table. The paper is double column so I'm ...
3
votes
1answer
96 views

Setting chapter numbering to alphabetic in one part only

I need to have the chapter numbering of a specific part in my document be alphabetic instead of numeric. How is this accomplished? MWE playground: \documentclass[a4paper,12pt,twoside,onecolumn,...
1
vote
2answers
22 views

\footnote only show number but with no contents at the bottom

I'm just trying to show the reference by using the \footnote. However, the beamer only show the number of footnote but with no contents at the bottom. Here is my codes \frame{ \frametitle{...
0
votes
1answer
30 views

Is there a way to define \xmat*{M}{n}{m} in the physics package

As titled, I want the command\mqty(\xmat*{M}{n}{m}) to generate a matrix like this: $$ \begin{pmatrix} M_{ 11 } & M_{ 12 } & M_{ 13 } & \cdots & M_{ 1m } \\ M_{...
1
vote
1answer
20 views

How to make \autocites work as \supercite with square brackets and grouped

I found how to make \supercite with square brackets and grouped at Biblatex supercite with square brackets and grouped So I add the option autocite=superscript for biblatex package, and get this MWE:...
0
votes
0answers
17 views

Arrow in the centre of the lines [duplicate]

The following tex produces the image below. I want the arrow in the centre of the lines. Is it possible to modify the given tex to fix it? Thanks \begin{tikzpicture}[grow=right,scale=1,solid node/....
0
votes
0answers
7 views

Importing “minted”s from a subdirectory to another subdirectory

My hierarchy goes like this: Main Folder SubFolderForCode(1) doc.tex code.py SubFolderForCode(2) doc.tex code.py SubFolderForDoc doc.tex I want to ...

15 30 50 per page