Questions tagged [coding]
The coding tag has no summary.
21 questions
3
votes
1
answer
408
views
Why does LaTeX convert inline Python code (range(N-2)) into -NoValue-?
I am using Changing the background color of a listing depending on the language to display code with a different background color depending on the language. But with some code, it fails and prints -...
8
votes
3
answers
492
views
2D Projectile Motion Diagram (Attempt)
Beginner LaTeX coder here! I'm attempting to code the attached diagram.
But currently the furthest I can get to coding this diagram is as follows:
\begin{center}
\begin{tikzpicture}[scale=1.2]
% ...
0
votes
0
answers
32
views
How to rectify this error [duplicate]
! LaTeX Error: File `pscyr.sty' not found.Type X to quit or to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop. ^^M
0
votes
1
answer
147
views
breakline is not working for lstlisting package while none option in hyphenat package used
The below code is the tex file content, which has listings package.
\documentclass[12pt,a4paper]{report}
\usepackage{hyperref}
\usepackage[english]{babel}
\usepackage{xcolor}
\usepackage{listings} % ...
0
votes
1
answer
173
views
Simplex equations using LaTeX
I am completely new to LaTeX. Can anybody help me in showing how to write simplex equations using LaTeX. ie z= 3x(1) +5x(2) and x(1)<=4 etc
0
votes
1
answer
175
views
Should we really use csname?
Over time have seen csname but I never had to learn it until now.
But after reading @egreg's (beautiful!) answer to What exactly do \csname and \endcsname do?, I am not so sure if this is good coding.
...
1
vote
1
answer
339
views
Taking screenshots of Java code from IDE to Latex (Text being to small)
I have been trying to make the screenshot of my code fit the document better, where it fills from side to side, without being stretched as a "background"
Any idea of how to implement it? ...
0
votes
1
answer
258
views
Numbering Theorems by Subsections
I want to make my theorems to be numbered by subsection, for example after subsection 4.1 I want the next theorem to be numbered as 4.1.1 but instead I get the numbering only by the section itself. Is ...
3
votes
2
answers
921
views
Creating a new symbol in LaTeX
I would like to create a symbol for a function in LaTeX, like this:
Can someone help me?
It would have to look like this:
1
vote
0
answers
63
views
Just Beginning, need some help! InfiniTeX Problems?
I am just getting started in learning LaTeX! However, when I am writing some "code" to compile I am running into an error message. It could be the editor that I am using, for reference it is ...
1
vote
1
answer
394
views
T1 fontenc with utf8 inputenc don't behave well together in the output pdf
if I use the following document
\documentclass[11pt, a4paper, english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
Why is this output so strange öäü at zoom ...
1
vote
0
answers
163
views
Add style to pseudo-class keywords in CSS with listings
Problem:
Adding specific color to pseudo-class keywords in CSS using listings. For example, the pseudo-classes :link, :visited, etc should be colored differently.
Minimal Working Example (MWE):
\...
2
votes
3
answers
286
views
please tell me how to write this equation in Align, I tried coding below but got errors
\begin{align*}
c\sup_{L>0,L\in \mathbb{Z}}\biggl[ \biggl{ \sum_{k=-\infty}^{-1}2^{(k \alpha_1(0) -L \lambda) q_1(0)}biggl ( \sum_{i=k-5}^{+\infty} \lambda_i \norm{a_i}_{p_1(\cdot)} \biggr )^{q_1(0)}...
1
vote
1
answer
521
views
animateinline problems
I have a couple of problems regarding an animation in latex
1) The animation flicker while it runs
2) The animation is shown as a sliding window, I would like to keep the already
played ...
0
votes
1
answer
1k
views
Coding formatting (C language)
I have a code in C language. I wish to set the margin numebers and the symbols (e.g., (, ), {, }, =, >, etc.) in white. I am working using the following format, but without any real result.
\...