Questions tagged [css]

Cascading Style Sheets

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Changing hyperlink styles in a footer or other document part

Is there a way to change the hyperlink styles from package hyperref in different parts of the document? I might want a different style in footers, or in the text of subsubsections, than the rest of ...
user avatar
2 votes
1 answer
80 views

"Move to front" and "move to back", z-index or suchlike in Beamer

TL;DR: I want LaTeX Beamer to lay out elements in a frame exactly as usual, but give me the final say about the order in which overlapping elements occlude each other. Some context In CSS, the z-...
user avatar
  • 273
1 vote
1 answer
263 views

Text in svg is not wrapping around a box

I am trying to include an sag image in Latex like the following. \begin{figure}[H] \centering \includesvg[inkscapelatex=false, width=0.7\pdfpagewidth]{figure.svg} \end{figure} <?xml version=&...
user avatar
  • 11
1 vote
1 answer
43 views

How to get margins on dynamically inserted page breaks within a figure of a tex4ht ebook

Summary I'm creating an ebook using LaTeX and tex4ht. I have certain text that I want to treat as a figure. Sometimes, this text spans multiple pages. When that happens, the dynamically inserted page ...
user avatar
1 vote
0 answers
79 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): \...
user avatar
  • 2,603
2 votes
1 answer
77 views

Creating new single line classes in ODT output from mk4ht oolatex

I've been trying to follow a tutorial here: github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial My MWE files below produce a valid output with the text from the command, but I was expecting the ...
user avatar
  • 3,955
1 vote
0 answers
31 views

Apply specific color to !important in CSS using listings

Problem: I wish to apply a gray color to !important in CSS when using listings. I have managed to modify so that the color is different after : but how can I modify the code below so only !important ...
user avatar
  • 2,603
2 votes
0 answers
33 views

Emphasize the under bar of spell checker

I want to emphasize the under-bars of spell checking since it is slightly hard for me to find. For example more bigger line width. Using css file, I want to change its style for Tex-works.
user avatar
3 votes
2 answers
729 views

make4ht - provide multiple configuration files

In post How can I override tex4ht's CSS in a single .css file? the proposed solution requires to add a configuration file (namely sample.cfg). So, if I have sample.tex I may add sample.cfg. However, ...
user avatar
2 votes
1 answer
141 views

How to customize the whitespace and characters in math typography correctly

Currently I would like to define whitespace that has this exact whitespace format { a, b, c } {} f : X -> Y X:Y (Notice the lack of space in {} and X:Y). I would also like to style some of the ...
user avatar
  • 1,687
1 vote
1 answer
605 views

Styling an HTML paragraph with tex4ht

I've created a simple macro in LaTeX for notes: \documentclass{book} \usepackage{xcolor} \definecolor{notecolor}{rgb}{1,0.2,0.2} \newcommand\note[1]{{\textcolor{notecolor}{\textbf{Note: }}}#1} \...
user avatar
  • 21
4 votes
2 answers
318 views

.css generation from .cls file not from the .cfg file

Is this possible to generate the .css file based on the customized .cls file not from config file (i.e. \Css {}). e.g., environment quote was defined in my class file as: \newenvironment{quote}% ...
user avatar
  • 10.9k
1 vote
1 answer
485 views

Color change of string delimiter in listings with macro

Problem: I have managed to get color highlight for CSS using the package listings, but there is a small detail that is not solved. The string delimiters are : and ;. I would like the delimiter : to ...
user avatar
  • 2,603
5 votes
0 answers
116 views

Color definitions for CSS using listings [duplicate]

Problem: Coloring different components of CSS using listings. I have managed to get HTML to work well, but CSS is not supported by listings and therefore I am wondering if there is a way to get ...
user avatar
  • 2,603
1 vote
0 answers
3k views

How to stop the cursor blinking in online LaTeX editors, like ShareLaTeX? [closed]

Like many, I find it hard to work with a blinking cursor. I've just started using ShareLaTeX, and it's great, but the blinking cursor in the editing panel is genuinely tough to deal with. I found a ...
user avatar
1 vote
1 answer
1k views

Is there a way to not cut off large tables with page breaks?

Say I have a large table larger than the page, how can I make it so that the second page displays the headers from the previous page and also doesn't split a row in half. Something similar to CSS like:...
user avatar
2 votes
1 answer
100 views

Clean, efficient way to modify external table without modifying internal tables

Oftentimes the best way I can figure out how to lay out something is with the mindset I learned from HTML, tables within tables. How can I modify parameters affecting the external table without ...
user avatar
7 votes
1 answer
1k views

Is there something similar to or compatible with LaTeX that supports more of a concept of external stylesheets? [duplicate]

I'm new to LaTeX and TeX in general. So far I'm really liking the possibilities it offers for making my documents functional, such as being able to use references to show the page number of another ...
user avatar
4 votes
2 answers
1k views

Force newline in concepts

I am following this acm-template (Zip set of TeX template files for easy download (May, 2015).) I have this minimal example: \documentclass{sig-alternate-05-2015} \usepackage[english]{babel} \begin{...
user avatar
  • 1,341
7 votes
0 answers
1k views

Generating nice-looking static websites from LaTeX? [closed]

I notice that a lot of researchers tend to have crappy-looking websites, often because they aren't willing to put in the time it takes to learn HTML, CSS, and design principles--they'd rather do ...
user avatar
  • 240
2 votes
1 answer
1k views

Renew itemize environment for customization in tex4ht

In a htlatex compiled document a standard enumerated list environment shows up as a <li class="itemize"> tag. For the pdf version I have loaded the enumitem package to aid with list ...
user avatar
  • 3,955
8 votes
1 answer
2k views

Best workflows or tools to generate an html web page from a complex latex document like thesis

I'm really interested to publish my thesis on a website HTML + CSS (when it's done) augmented with tools to annotate it, like the philoweb initative (see here, and here). I know the universal ...
user avatar
  • 529
11 votes
1 answer
1k views

How to understand LaTeX styling when coming from a CSS background?

I come from a web development background and I am used to apply CSS styles to HTML tags in order to position and shape them. In LaTeX I constantly find myself trying to think in terms of CSS and of ...
user avatar
  • 3,433
4 votes
2 answers
932 views

Trying to emulate CSS "object-fit" behaviour with PDF's and LaTeX/TikZ

I have a collection of PDF files (each exactly one page) each one with a possibly different size and aspect ratio. I'd like to create a document where I include each PDF into a box of the same size, ...
user avatar
2 votes
1 answer
116 views

Invoke \CssFile via \AfterEndPreamble

When running htlatex <filename> one can include CSS code via \CssFile and \EndCssFile. This works fine as long as the code is included directly in the main document body. I suspect this is the ...
user avatar
3 votes
1 answer
614 views

How to put a whole part of generated HTML from htlatex in a special div?

Using TeX files, I generate two pdf deliverables and one website from the same source. I generate my html using htxelatex and a config file like that has the following: \Css { .tableofcontents { ...
user avatar
3 votes
1 answer
317 views

ConTeXt customize styling similar to CSS

In html, one can <div class, id> and CSS styling with selection based on "class" or "id". Is it possible to do it similarly in ConTeXt? For example, using "define" then "setup", then "start/...
user avatar
  • 241
22 votes
1 answer
2k views

I have a dream: Using CSS to style a TeX document

I have no clue in LaTeX package developing but I have a dream! Consider following two files: % A LaTeX file \documentclass{article} \usepackage[style.css]{css} \begin{document} \begin{abstract} ...
user avatar
2 votes
0 answers
187 views

Equivalent of CSS adjacent selector in LaTeX [closed]

In CSS you can use the adjacent selector to create conditional formatting. For example, p + p to format a paragraph that follows a paragraph, or h1 + p to format a paragraph that follows a h1 element. ...
user avatar
  • 301
6 votes
0 answers
1k views

HTML to Latex: Converting CSS styles to respetive LaTeX functions [closed]

I am using HTML to LaTeX programme to convert large quantity of HTML files. A typical example: <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title&...
user avatar
  • 885
4 votes
2 answers
5k views

How to use a colon in lstlisting keywords?

for the use of CSS code I've defined the following style: \lstdefinelanguage{CSS}{ sensitive=true, alsodigit={-}, keywords={transform, transition-property, transition-duration, transition-...
user avatar
5 votes
3 answers
367 views

Possible CSS type features?

Hi I am doing a project for my 10th grade Graphic design class and we have to make up an inspirational type thing with the emotion words Bold, in a bigger size and capitalized and I was wondering if ...
user avatar
22 votes
2 answers
4k views

Generation of simple, CSS-less HTML with htlatex

When htlatex converts a document, emphasis and bold-face are converted to spans of a certain style which is defined in the accompanying CSS file. Input: \documentclass{scrartcl} \begin{document} ...
user avatar
  • 12.1k
3 votes
1 answer
677 views

Latex2html: How to make table of contents not use a bullet?

When I run LaTeX2HTML on a LaTeX file, the table of contents that is generated in the html file has bullets to the left of each section. Like this: o this_is_section_one o this_is_section_two If ...
user avatar
  • 18k
9 votes
2 answers
2k views

CSS border-top, border-bottom, border-right LaTeX equivalent

Is there an equivalent in LaTeX to the CSS border-top, border-bottom, border-right properties? I would like to underline and overline text with with a border on the right, not simply underline or ...
user avatar
  • 91
31 votes
4 answers
10k views

Pixel-perfect vertical alignment of image-rendered TeX snippets?

What is the most accurate way to automatically calculate the text baseline in an image that has been rendered from a TeX snippet—so that the rendered image can be given proper vertical alignment in a ...
user avatar
  • 13.3k
36 votes
3 answers
13k views

CSS based LaTeX formatting?

I've done ab bit of web-searching and found nothing. Are there any attempts on using CSS for LaTeX formatting? For example: body { font-family: Helvetica,Arial,sans-serif; } section { font-size: 16pt;...
user avatar
  • 35.9k
40 votes
6 answers
33k views

How can I use LaTeX to build my website?

Can I use LaTeX to specify cascading style sheet? Can someone enlighten me something about using LaTeX with my website? Basically to setup layout like how I do for documents, setting up fonts, ...
user avatar
20 votes
3 answers
3k views

Why couldn't (La)TeX's layout model be as simple as CSS's layout model?

I feel CSS's layout model is simpler than (La)TeX's layout model. At the time Knuth developed TeX, the idea leading to CSS model is a "difficult" things? Or the CSS layout model is not appropriate to ...
user avatar
  • 42.4k