Questions tagged [css]

Cascading Style Sheets

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

ACM classifications after the abstract

I have been writing a research paper for a journal that requires the ACM classifications (CSSXML), but it should be on the second page AFTER the abstract. I have tried putting the CSSXML part there, ...
Ксения's user avatar
1 vote
0 answers
97 views

Use html inside Latex

I'm having a html and css code of a figure, and wanna insert this code inside the latex file such that when i compile the document it show me the figure.
Ahmed EL YOUSEFI's user avatar
0 votes
1 answer
28 views

Framed boxes with borders that take up no space (like the effect of `outline` CSS property)

I would like to make some simple schemas using stacked or overlapping framed boxes with content. I could almost use a table instead, but I do not see how to do some of the "overlaps" in a ...
Alexey's user avatar
  • 2,037
0 votes
0 answers
33 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 ...
Doug Ransom's user avatar
3 votes
3 answers
417 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-...
Mew's user avatar
  • 771
1 vote
1 answer
785 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=&...
sprog's user avatar
  • 11
1 vote
1 answer
144 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 ...
cryptoplex's user avatar
1 vote
0 answers
131 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): \...
kexxcream's user avatar
  • 2,775
2 votes
1 answer
97 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 ...
EngBIRD's user avatar
  • 3,975
1 vote
0 answers
44 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 ...
kexxcream's user avatar
  • 2,775
2 votes
0 answers
35 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.
Camford Oxbridge's user avatar
3 votes
2 answers
934 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, ...
DarioMangoni's user avatar
2 votes
1 answer
159 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 ...
Lance's user avatar
  • 1,767
1 vote
1 answer
683 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} \...
Ron's user avatar
  • 21
4 votes
2 answers
367 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}% ...
MadyYuvi's user avatar
  • 13.4k
1 vote
1 answer
596 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 ...
kexxcream's user avatar
  • 2,775
5 votes
0 answers
121 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 ...
kexxcream's user avatar
  • 2,775
1 vote
0 answers
4k 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 ...
ddm_ingram's 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:...
Forwarding's user avatar
2 votes
1 answer
107 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 ...
Travis Bemrose's user avatar
7 votes
1 answer
2k 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 ...
Joshua Walsh's 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{...
gsamaras's user avatar
  • 1,433
8 votes
0 answers
2k 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 ...
JesseTG's user avatar
  • 260
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 ...
EngBIRD's user avatar
  • 3,975
8 votes
1 answer
3k 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 ...
reyman64's user avatar
  • 539
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's user avatar
  • 3,513
4 votes
2 answers
1k 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, ...
Stuart Hungerford's user avatar
2 votes
1 answer
137 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 ...
Peter Grill's user avatar
3 votes
1 answer
663 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 { ...
Claudiordgz's user avatar
3 votes
1 answer
382 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/...
Zhe Hu's user avatar
  • 241
22 votes
1 answer
3k 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} ...
Handsome Nerd's user avatar
2 votes
0 answers
201 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. ...
Amaru's 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&...
Shi Yuan's user avatar
  • 895
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-...
Benny Code's user avatar
  • 3,022
5 votes
3 answers
377 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 ...
Ryan Larson's user avatar
22 votes
2 answers
5k 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} ...
krlmlr's user avatar
  • 12.5k
3 votes
1 answer
718 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 ...
Nasser's user avatar
  • 20.7k
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 ...
Phil's user avatar
  • 91
31 votes
4 answers
11k 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 ...
Todd Lehman's user avatar
  • 13.8k
37 votes
3 answers
15k 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;...
topskip's user avatar
  • 36.9k
40 votes
6 answers
38k 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, ...
Prabhanjan Naib's user avatar
21 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 ...
Display Name's user avatar
  • 46.6k