Cascading Style Sheets

learn more… | top users | synonyms

24
votes
3answers
938 views

How do I display pi in LaTeX like Don?

Way back in 1979, Donald Knuth, tried to give the feeling that π is irrational using the idea of infinite sequence of smaller and smaller font sizes like what I have tried to do here using HTML and ...
0
votes
0answers
26 views

Overview of page geometry, font sizes etc. of common document classes

Has someone precompiled a tabular or annotated graphical overview of the default lengths etc. of common LaTeX classes (standard, Koma/scr, memoir, beamer …) and put it on the net? I didn’t find any. ...
2
votes
1answer
67 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 { ...
1
vote
0answers
71 views

HTML email typeset equations as HTML elements, not images? [closed]

I thought it would be super-useful to find a substitute for emailing equations as images. The problem I have experienced is that with some receiving email clients, the images are turned off by ...
1
vote
0answers
67 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 ...
18
votes
1answer
514 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
101 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. ...
4
votes
0answers
425 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" /> ...
3
votes
2answers
799 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, ...
5
votes
3answers
235 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 ...
12
votes
1answer
1k 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
341 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 ...
6
votes
2answers
708 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 ...
27
votes
4answers
7k 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 ...
23
votes
1answer
2k 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: ...
17
votes
6answers
7k 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, ...
13
votes
2answers
2k 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 ...