All Questions

1 vote
1 answer
19 views

graph in latex codes

How can i write this ? i tried matrix enviroment but doesn't work $\begin{matrix} 1 & & 2 \\ &2& \end{matrix}$ Is there an option that would reduce the gaps?
wanheda's user avatar
  • 35
0 votes
0 answers
7 views

BibTeX setup doesn't recognize citations [duplicate]

I have a very barebones file that I just want to get citations working on: \documentclass[11pt]{article} \usepackage{amsmath, amssymb, amsfonts} \usepackage{mathtools} \usepackage{latexsym} \...
aero's user avatar
  • 1
1 vote
0 answers
19 views

Creating standards compliant PDF-A with lualatex and cmyk colors

I'm trying to create a PDF-A file which passes verapdf validation. But as soon as I add a cmyk color it fails. MWE: \DocumentMetadata{ pdfstandard=A-4F, pdfversion=2.0, colorprofiles = {A = sRGB....
t-b's user avatar
  • 118
1 vote
2 answers
21 views

Issue with forced linebreaks in the wrapstuff package

The wrapstuff package is a nice alternative to the wrapfig and wrapfig2 packages since it offers the ability to wrap text around figures which are center-aligned. An issue with it seems to be that its ...
Atex's user avatar
  • 412
1 vote
1 answer
18 views

adding \usepackage{subcaption} makes tex4ht not correctly align caption below image in graphics

This MWE \documentclass[12pt]{book} \usepackage{graphicx} \usepackage{framed} \newcommand{\addImage}[4] { \begin{figure} \centering \begin{framed} \includegraphics[width=#2\textwidth]{#3}\...
Nasser's user avatar
  • 20.7k
1 vote
1 answer
24 views

How to extract a code listing correctly in .pdf from .dtx file, using package listings?

Question: How to obtain the ideal result wrt. code listing, shown below, both as screenshot and simplified code? How to add listings environment to DTX files doesn't seem to solve it for me. What I ...
MS-SPO's user avatar
  • 15.8k
0 votes
0 answers
14 views

Keywords in lstlisting are not highlighted sometimes

As a follow up of lstlistings package: Replacing a character I don't understand why sometimes the keywords are highlighted and sometimes not \documentclass{article} \usepackage[T1]{fontenc} % Use ...
Esteban Zimanyi's user avatar
0 votes
0 answers
20 views

Use different citation and bibliography styles in different parts of a document

How can I have change the citation and bibliography style in Part B below to a numeric style while retaining the author-year in Part A. \documentclass[a4paper,11pt,fleqn,english]{article} \usepackage{...
Kelechi Igwe's user avatar
2 votes
1 answer
28 views

Module luamplib Warning: ! A secondary expression can't begin with `scaled'

Fiddling around with an example from "Drawing with Metapost" by Toby Thurston, p. 39 since a few days, but still stuck. This example runs in plain METAPOST without luamplib-usage flawless (...
Georg's user avatar
  • 93
-2 votes
0 answers
38 views

how to draw an ellipse inside a circle if possible [closed]

I used to have a manual on how to draw in Latex just using the basics of what i have in miktex but i cannot find the manual. NOt using any special tikz or anything like that but just the miktex that i ...
user158293's user avatar
1 vote
1 answer
11 views

Set the line number in algorithm2e [duplicate]

As the title specifies it: Is there a way to reset the line number of a single algorithm when using algorithm2e? My use case is to start line numbering of an algorithm from 26. Non working minimal ...
coderodde's user avatar
  • 561
5 votes
2 answers
49 views

circuitikz: how to reduce distance between vcc symbol and its label?

I like reduce distance between vee symbol and its label. For example: \documentclass[margin=3mm]{standalone} \usepackage{circuitikz} \begin{document} \tikz\draw (0,0) to[short,o-] ++ (1,0) ...
Zarko's user avatar
  • 304k
4 votes
2 answers
27 views

Individual command for section and toc only [duplicate]

I am trying to get the following output as section header/toc: Text 1 Section Name 1.1 Subsection Name 1.2 Subsection Name Text 2 Section Name 2.1 Subsection Name 2.1.1 Subsubsection ...
Tom's user avatar
  • 43
3 votes
0 answers
37 views

Fatha + dagger alif (ArabTeX)

\documentclass[12pt,a4paper]{article} \usepackage{arabtex} \begin{document} \setarab \fullvocalize \arabtrue \begin{RLtext} a.s-.sir_a.ta \end{RLtext} \end{document} produces while \begin{RLtext} ...
AlephBeth's user avatar
  • 431
3 votes
2 answers
70 views

How to globally turn off equation numbering?

In a very similar way to this post: Global option to turn on/off section numbering, say I have a large document with many equations numbered, some unnumbered using \begin{equation} and \begin{equation*...
Jack's user avatar
  • 216
1 vote
1 answer
37 views

Shadowing the chapter name

I want my chaptername to be shadowed. But when I did like this, only the chapter number is shadowed. Can someone help me to fix this? \documentclass[12pt,a4paper,twoside]{book} \usepackage[utf8]{...
Hưng Trần's user avatar
0 votes
1 answer
15 views

How to change "References" to "Bibliography" when using document class {article} without using .bib file?

My document is like this: \documentclass{article} \title{Some Title} \author{} \date{} \begin{document} \maketitle \begin{thebibliography}{00} \bibitem{1a}{Some cited reference 1} \bibitem{1a}{...
Userhanu's user avatar
  • 127
5 votes
1 answer
47 views

Legend marker wont change, persists to a black dot

I am trying to change the legend marker to a black dashed line to match that of my linear regression but it persists as a black dot. I dont understand why this is occuring when I have defined the ...
Rhys's user avatar
  • 83
1 vote
0 answers
20 views

Difficulty changing legend marker and resizing in pgfplots

The legend which I have the linear regression equation and R^2 value beside it runs over one of my data points, I want to resize the text that way no point is blocked. I also am trying to change the ...
Rhys's user avatar
  • 83
3 votes
2 answers
87 views

optional argument position

inspired by the post Newcommand with optional argument and ifthenelse. float point places can be controled by following code as well. Is it possible to modify the syntax optional argument position ...
xcn's user avatar
  • 685
4 votes
3 answers
201 views

Is there a tool on the web where I can simply copy-paste a LaTex expression and see the symbolic expression? [closed]

My earlier question was closed as off-topic, but this is a real question. I do not know Latex. In an online course, I see this: Choosing the mean of the smallest and largest element of an array of n ...
likejudo's user avatar
  • 141
0 votes
2 answers
36 views

How to reposition X-label title

I am new to making LaTex and pgfplots, I am in the process of making a temperature scatter graph however I am encountering some problems I will outline in multiple posts otherwise the message will be ...
Rhys's user avatar
  • 83
4 votes
1 answer
49 views

tikzpicture exceeds table cells with multirow

I'm using multirow together with tikz pictures and the result is suprising (at least to me). I reduced the code to: \documentclass{article} \usepackage{tikz} \usepackage{multirow} \begin{document} ...
pschulz's user avatar
  • 1,435
-1 votes
0 answers
60 views

Latex drawing of a figure [closed]

How can I draw this figure on latex
Amar Mouhamadou's user avatar
3 votes
1 answer
136 views

Lowercaseing a macro

I have text that I want to link to a dictionary. In the MWE, I show a small sample. It works on lowercase examples (three words as an example) but not on text with an initial capital letter. While I ...
hsmyers's user avatar
  • 1,605
1 vote
2 answers
65 views

Is there a way to automate adding the "Chapter" or "Figure" label when using \ref, similar to how \eqref automatically adds brackets?

I would like to define commands like \eqref for referencing chapters, figures, theorems and so on. Instead of having to write "In Chapter \ref{ch1}, we discuss...", I could write something ...
Alice Markham's user avatar
2 votes
3 answers
222 views

How to Darken the ISBN in a Pst-Barcode?

Consider the code: \documentclass[12pt]{book} \usepackage{pst-barcode} \begin{document} \thispagestyle{empty} \begin{pspicture}(1.3125in,0.7in) \psbarcode{3-16148-410-0} {backgroundcolor=...
DDS's user avatar
  • 10.3k
3 votes
1 answer
73 views

Math mode: bold with hat

In the past, I remember in math mode I used to write, say, \bm{\hat{n}} and it would work. Working in lualatex I had the error Missing number, treated as zero. and the output below. But \hat{\bm{n}} ...
blackened's user avatar
  • 4,285
3 votes
1 answer
54 views

Semicolon after dot not working inside and after biblatex citation

Today I noticed a weird behavior with biblatex regarding semicolons. Consider this following MWE using biblatex, in which i try to cite two sources using the \parencites command \documentclass{article}...
David's user avatar
  • 33
0 votes
0 answers
21 views

LyLuaTeX warning: “gs couldn't be launched; there could be rounding error”

I tried compiling the following LuaTeX document using lualatex --shell-escape: \documentclass[a4paper]{article} \usepackage[pass-fonts]{lyluatex} \begin{document} \begin{lilypond} a b c d \end{...
Gaussler's user avatar
  • 13.4k

15 30 50 per page
1
2 3 4 5
8834