Questions tagged [source]
The source tag has no usage guidance.
70
questions
10
votes
2
answers
444
views
Can we make a true \phantom?
My question is: "Is it possible to create a general "true" \phantom command that makes the inputted content invisible while preserving the original typesetting?".
I do not consider ...
8
votes
1
answer
141
views
Cirkuitikz: How to only rotate alternating current symbol?
I'm tasked with correcting some minor issues with my recent lab report. One of those issues consists of a wrong orientation of the alternating current symbol; I know the wave is supposed to be aligned ...
0
votes
0
answers
109
views
Building pfdlatex from source with TeX Live
I am trying to build pdflatex as part of TeX Live from source. Due to a variety of reasons that are not important, I need to build all these tools from scratch.
I have been able to build TeX Live from ...
1
vote
1
answer
125
views
Source generated commentary
Had a look at source2e.pdf and source3.pdf. From what I understand, the developers of latex include commentary in the source files. The source files can then be processed by some tool to make a ...
0
votes
0
answers
198
views
Unable to view source code in texstudio latex
I am using Texstudio 4.2.2. I write my source code and compile it successfully and view it many times as PDF. After a few days, I got my paper revision. When I open the text studio my source code only ...
1
vote
1
answer
2k
views
MikTeX sources and LaTeX language
Am I right that MikTeX sources in C++ contain the code that opens .tex file (when I run latex.exe myfile.tex), reads it, parses commands, performs them if they are correct and logs error messages ...
1
vote
1
answer
429
views
How can I build pdflatex from source? Is Xaw needed?
I am compiling latex on linuxppc64le (RHEL 8.3) with
../configure --prefix=$HOME/contrib/latex
and I get the build failure
checking for Xaw headers... no
configure: error: Sorry, you will need at ...
1
vote
2
answers
254
views
List of sources or list of figures with small source
hope you're doing fine.
I've seen all the subjects about my question and tried some still didn't work out as I wanted.
Here's what I'm trying to acheive :
Right now I only have a list of figure with ...
0
votes
2
answers
1k
views
Downloading source from arxiv only gives one figure. How to obtain the entire TeX source?
I would like to download the TeX source code of this paper (https://arxiv.org/format/1701.07035v2) from arXiv. But clicking "Download source" only gives me one figure in the paper. Does ...
2
votes
1
answer
146
views
Using animate package for gif that is not in root directory
I have converted the gif into a series of pdf files and now I want to use the animate package to embed pdf 'images', called exp_%d.pdf, into my LaTeX pdf. However, the source of the pdf files is ...
0
votes
1
answer
130
views
When a string may be assigned to an array?
In section 51 of tex.web there is this:
name_of_file ← pool_name; { we needn’t set name length }
where name_of_file is (sectoin 26):
name_of_file : packed array [1 .. file name size ] of char;
and ...
5
votes
2
answers
137
views
Why are spaces needed in the end of string array?
In section 11 of tex.web is this:
@!pool_name='TeXformats:TEX.POOL ';
{string of length |file_name_size|; tells where the string pool appears}
and in section 519 is this:
for ...
0
votes
0
answers
17
views
On handling long source names [duplicate]
I am using apalike bibliography style and natbib for citations.
When citing "Board of Governors of the Federal Reserve" I faced the issue that the full source wasn't cited but only "Bord of Governors ...
2
votes
1
answer
319
views
How can I have an additional "source'' caption in a table redefined with `renewenvironment`?
I had tables working well with a regular caption above and source information below each of them:
After implementing a solution given in https://tex.stackexchange.com/a/485538/91816, the captions ...
2
votes
1
answer
2k
views
incorporate R code into latex paragraph
I have a large R script I am trying to source in a LaTex document and then reference output from specific dataframes created in the source code in text in a LaTex paragraph.
When I compile the PDF ...
0
votes
0
answers
395
views
Including reference URL in bibliography using BibDesk
I'm including several articles I found on f.e. ScienceDirect into BibDesk so I can reference them in my LaTeX file. (I'm using apacite in my LaTeX file but I don't think that matters right now).
I'm ...
5
votes
2
answers
3k
views
How to remove minted indentation level with correct latex indentation?
When writing with minted code snippets I dislike to remove indentation in latex source, so correct results are generated. Is there a way to substract latex indentation-level from minted indentation? I ...
1
vote
2
answers
2k
views
How to attach AND HIDE a file in a PDF using Latex?
Embedding a file is fairly easy using LaTeX (see, for example: Embed link to an embedded file).
Hiding an embedded file is also possible and fairly easy to do outside LaTeX (see, for example: https://...
0
votes
1
answer
2k
views
List of figures with figure source
So basically I need a list of figures where the source is also shown like this:
I am using Koma-Scripts report class and my figures look like this:
\begin{figure}[H]
\begin{center}
\...
0
votes
0
answers
131
views
What is an appropriate way to insert structured data from an on-line source into a Tex/LaTeX document? From within, or externally?
Let's say there is a structured list of items on some on-line source. For example, the website https://nothing.better.to.do-a.shame might contain the following data:
A blueberry
<tag>...
3
votes
1
answer
108
views
Updating copyright note in a batch of latex files?
Appologising in advance for profound ignorance
here is my problem. My 86 year old Dad has created a beautiful, free academic website, www.earlymoderntexts.com. He created all the text files in Latex,...
3
votes
2
answers
948
views
lstlisting - giving source - smaller font, alongside caption, preferably above caption
I would like to separate description of listing (\caption{}) from source of listing. What I search for is like \footnotesize in presenting pictures (\begin{figure}). I was searching for this at latex ...
1
vote
0
answers
293
views
Synctex doesn't work for some subfiles [closed]
I'm writing my Master's thesis with TeXMaker 4.5 (MiKTeX 2.9) on Windows 10.
Furthermore, the structure is orgnizes in sub-directories and separate files.
I use the following command to compile my ...
2
votes
1
answer
148
views
Which TeX editors can jump to \import source directly?
Which of the TeX editors have the possibility to make jump by clicking to source file some_source_tex_file.tex in \import{some-dir}{some_source_tex_file.tex} in view for editing?
Bigest thank you for ...
3
votes
0
answers
3k
views
No creation rule for font ""
I am receiving the following error message:
Running miktex-makemf.exe...
miktex-makemf: The source file could not be found. Running
hbf2gf.exe...
hbf2gf (CJK ver. 4.8.0) `' can't be a ...
4
votes
1
answer
415
views
How use embedfile package with pdflatex to embed entire tree of source files?
What commands with the embedfile package will embed an entire tree of source files into the output from pdfLateX?
The sort of tree, in very simplified form, that I have is as follows, where (d) ...
1
vote
2
answers
78
views
How to expand the \caption-command to pre-insert the affiliated source of figure/table?
In scientific works it is quite common to specify the source for every statement. This is also necessary for tables or images of course.
Usually I'm always using the \caption-command for adding some ...
6
votes
1
answer
1k
views
What is the logic behind \@afterindentfalse when \@tempskipa <\z@?
I am just looking to confirm what I suspect. Was this programmed to make any negative :
have no vertical effect because nobody in their right mind would want overlapping text?
Therefore disable ...
0
votes
1
answer
98
views
How to use a timing on a picture's source on beamer
I have a slide with two columns: an itemize with pauses, and an overprint with pictures. They were perfect until I decided to insert the picture's source on the bottom. So now I have the source since ...
38
votes
5
answers
9k
views
Best practices for source file line lengths?
Are there any best practices for how long to make your lines in your source file? I'm also interested if there are best practices for it if there aren't any LaTeX-specific best practices.
I ...
5
votes
2
answers
2k
views
Add a centered source to figure captions
Just a question. I used this code to create a source under my figures:
\documentclass{article}
\newcommand*{\captionsource}[2]{%
\caption[{#1}]{%
#1%
\\\hspace{\linewidth}%
\textbf{...
2
votes
1
answer
76
views
What is the correct way to refer to the code that one enters in an editor?
I am a question about terminology. When I think about source code I usually think about the code that a program is compiled from. But I also often call the code in the .tex file source code. Is this ...
2
votes
1
answer
324
views
What type of plain text should the latex code be?
I know that one writes the LaTeX code in a text editor as plain text. One then saves this file as a .tex file ad compiles using latex (or pdflatex, or ...).
From what I understand, there are ...
2
votes
0
answers
2k
views
Custom lstlisting highlighting for symbols
I using the Listings package to pretty print CUDA source code listings.
CUDA is a dialect of C++, so I define my style as follows:
\documentclass{article}
\usepackage{listings}
\usepackage{...
2
votes
1
answer
380
views
Hanging indentation of source code within sentence a la Vim-LaTeX-Box
I've recently been playing with the LaTex-Box plugin for Vim and noticed the layout of the source code on their Github page:
What interests me is the 2-space hanging indent within each sentence. That ...
4
votes
0
answers
162
views
Source code explanation in LaTeX [duplicate]
I was just wondering if it is possible to create source code explanations like the image below using LaTeX (listings or minted it doesn't matter). I'm Sorry I'm kind of new to LaTeX.
Thanks in ...
18
votes
1
answer
8k
views
Embedding images in tex file as base64 strings?
A commonly asked question on this site is how to embed images directly in a .tex source file, without the need for the image to exist in a separate file. Examples of such questions (often marked as ...
1
vote
1
answer
1k
views
'Errors' using the minted VHDL environment
I recently started university, and was annoyed to find out, we had to do our reports and assignments in LaTeX... until I learned how to use it! I went from hating it to loving it in one day. :)
But ...
0
votes
1
answer
2k
views
Latex Listing Source shift right side?
I am using Latex listings package to add the source code in my document, but the problem is on the left side some character is missing as showing in the picture.
\usepackage{listings}
Source Code
...
6
votes
2
answers
29k
views
miktex-makemf: The source file could not be found
I m trying to compile file using TeXworks. I use fithesis class because its pre-set class by my university for creating documents.
\documentclass[12pt,oneside,final]{fithesis}
\usepackage[latin2] {...
16
votes
5
answers
31k
views
Possible to Convert Math in Picture into LaTeX? How?
Is it feasible to convert math in a picture, say written by hand, into LaTeX?
For example, I'd deem it faster to write down (de novo) a 10 x 10 matrix with long, complex entries, rather than typing ...
5
votes
1
answer
242
views
One source text, two outputs [duplicate]
I have very long source text.
I want to create two outputs:
All text
Only small pieces of this source text, selected by condition command
MWE (precisely: not working)
\documentclass{article}
\...
3
votes
1
answer
91
views
The actual source of pst-plot?
In the comment to answer to his question Labels with \psplot Svend Tveskæg writes:
The newest version of pst-plot can be found at http://texnik.dante.de/tex/generic/pst-plot/pst-plot.tex.
Is it the ...
3
votes
1
answer
8k
views
Source at the end of table and centering cells
How could I add before title the source of the table? Also, in the first row how could I center between 2010 and provisional the other dates?
\begin{table}[ht]
\centering % used for centering table
\...
7
votes
1
answer
1k
views
What is the right way to indent your source code?
This is probably a really basic question:
When I write code, I want to achieve a logical and readable structure of the lines, where I can see which brace closes which brace.
\begin{equation}
\begin{...
6
votes
1
answer
246
views
How to create two PDFoutput from the same source
I have a very long source file. I would like to prepare from this source two PDF files:
PDF contains all of the source file
PDF containing only a few, marked earlier parts of the source file.
How I ...
18
votes
1
answer
2k
views
Where do you find TikZ/PGF source code?
I'd like to check the the source code used to implement the standard rectangle shape in PGF/TikZ. I was thinking about searching for something like \pgfdeclareshape{rectangle} inside the PGF files but ...
3
votes
1
answer
71
views
Change automatically generated Text in sources with natbib
In my source directory of the thesis I am currently working on, I have got a masters's thesis as one source. As type for this source I chose Master thesis and now Latex always writes "master's thesis" ...
7
votes
1
answer
3k
views
Why \nointerlineskip if background of Beamer-color frametitle is empty?
I'm trying to read the source of Beamer default outer theme (the file beamerouterthemedefault.sty). In line 144 there is this code:
\defbeamertemplate*{frametitle}{default}[1][left]
{
\...
3
votes
0
answers
227
views
Is there an easy way to comment out a whole block? [duplicate]
Possible Duplicate:
Multi-line (block) comments in LaTeX
Is it possible to comment out a whole block in LaTeX source?
For example, like in Java:
// This is an in-line comment.
/*
This
is ...