Questions tagged [coding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
61 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
0answers
34 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
1answer
37 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
0answers
21 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
3answers
223 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
1answer
88 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
1answer
211 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. \...
1
vote
0answers
60 views

Is there a way to impose/automate coding style?

I am wondering if there is a way to impose coding style in editors (TeXstudio etc.), or to get it automatically formatted, in order to have always code as clean as in C or Python, for instance.
2
votes
1answer
100 views

Line breaks in code affecting outcome appearance (boxes)

I fear the answer to my question might be obvious to many of you, still I couldn't explain it to me. Using a parbox in an fbox and changing the textcolor works out as desired. But I came across a ...
1
vote
0answers
46 views

Unwanted coding shown next to inserted images on PDF, have no idea why? Pictures and code shown in description

Have this problem for all images except this one: I have tried PNG and Jpeg files, same problem. Here is the code us for the "count final.jpg" \begin{figure}[htp] \centering \includegraphics[width=...
1
vote
0answers
89 views

Can I code within latex? [closed]

I want to make a slide show that displays different slides depending on input that I give it. Simple example: Given n, display 2n. Can Latex do this? The idea is that the values in the slideshow will ...
10
votes
1answer
3k views

Specific color for different tags and comments using Listings package

Problem: The > symbol for HTML tags in the MWE has a different color than the < symbol. Would like to have both the same color. Minimal Working Example: \documentclass{scrreprt} \makeatletter ...
1
vote
0answers
666 views

Define listings for PHP [closed]

Problem: 1) Getting the following error messages: (a) Package Listings Error: Couldn't load requested language (b) Package Listings Error: language phpalsodigit undefined. 2) Unable to figure out ...