Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css]

Cascading Style Sheets

0
votes
0answers
36 views

Color of texworks

I change the color of TeXworks, then spellchecker is red on the black background. So it is difficult to find. I want to change the color of the underline which indicate the miss spelling. In .css file,...
1
vote
2answers
76 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, ...
2
votes
1answer
110 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 ...
1
vote
1answer
277 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} \...
4
votes
2answers
176 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}% ...
1
vote
1answer
237 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 ...
5
votes
0answers
94 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 ...
1
vote
0answers
905 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 ...
1
vote
1answer
417 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:...
2
votes
1answer
83 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 ...
5
votes
1answer
514 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 ...
3
votes
2answers
674 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{...
5
votes
0answers
777 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 ...
2
votes
1answer
541 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 ...
7
votes
1answer
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 ...
11
votes
1answer
256 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 ...
4
votes
2answers
440 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, ...
2
votes
1answer
66 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 ...
3
votes
1answer
516 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 { ...
3
votes
1answer
194 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/...
21
votes
1answer
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} ...
2
votes
0answers
167 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. ...
5
votes
0answers
947 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&...
4
votes
2answers
4k 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-...
5
votes
3answers
348 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 ...
22
votes
2answers
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} ...
2
votes
1answer
545 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 ...
8
votes
2answers
1k 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 ...
30
votes
4answers
9k 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 ...
29
votes
2answers
7k 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;...
33
votes
6answers
23k 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, ...
20
votes
3answers
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 ...