ArticleslgStudy

computer science

Style sheet (desktop publishing)

Style sheet (desktop publishing) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Style sheet (desktop publishing) rather than just read about it. In short: A style sheet is a feature in desktop publishing programs that store and apply formatting to text. Style sheets are a form of separation of presentation and content: it creates a separate abstraction to keep the presentation isolated from the text data.

Key takeaways

  • Style sheet (desktop publishing) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Style sheet (desktop publishing) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Style sheet (desktop publishing) from memory before moving on to harder problems.

Reference excerpt

A style sheet is a feature in desktop publishing programs that store and apply formatting to text. Style sheets are a form of separation of presentation and content: it creates a separate abstraction to keep the presentation isolated from the text data. Style sheets are a common feature in most popular desktop publishing and word processing programs, including Corel Ventura, Adobe InDesign, Scribus, PageMaker, QuarkXPress, WordPerfect, and Microsoft Word, though they may be referred to using slightly different terminology. For example, in Microsoft Word a style sheet is known as a template. The most well-known form of style sheet is the Cascading Style Sheet (CSS), which is used for styling Web pages.

Use Individual styles are created by the user and may include a wide variety of commands that dictate how a selected portion of text is formatted:

Typeface or font Boldfacing Italicizing Underlining Justification (left, right, center, justify, force justify) Space before and after paragraphs Tab stops and indentation Type size Leading Kerning Tracking Color Borders or strokes Superscript or subscript Dropcaps Letter case Strike through Outline font style Hyphenation In most programs with style sheets, there is a window or menu listing the style sheets the user has associated with the document. For example, a newspaper may have a style sheet for its story text called "Body copy" that sets the type at 10 point Nimrod with 11 point leading and justified alignment. Most programs allow users to name their own styles. Usually easy-to-remember names are used that describe what the style is used for. Common names might include "headline," "subhead" and "byline." To apply a style to a portion of text, most programs allow users to select the text with their mouse and then click on the desired style in a style panel. Some programs split style sheets into two classes: paragraph and character. Paragraph style sheets are applied to an entire paragraph while character styles are applied to only a select number of characters. Character styles are useful when a user needs to format only a small portion of a paragraph. For example, a newspaper may publish lists of current movies by starting with the name of a movie in a bold, sans serif typeface. Then, without starting a new paragraph, the review starts in the standard story text format. In this case, the designer could highlight the movie title and select the appropriate character style to apply the formatting only to the title. The rest of the paragraph can then be styled independently. More advanced layout programs allow users to format more complex paragraphs with a single paragraph style. Using our movie review example above, say the newspaper always places a colon after the movie title and runs 10 short movie reviews as one large story. In this case, the style could be programmed to apply the bold, sans serif typeface at the start of a new paragraph until it encounters a colon. After the colon, the style switches to the standard story text style. Therefore, the designer could highlight the entire collection and apply only one style that will automatically format the entire story without having to go through and apply separate character styles to each of the 10 reviews. Some scorewriters, including MuseScore and Sibelius, implement style sheets to control the appearance and layout of sheet music.

Benefits Style sheets help publications maintain consistency, so common elements such as story text, headlines and bylines always appear the same. Style sheets also help save time allowing a designer to click once rather than having to apply each element one at a time and risk using an incorrect value. Finally, style sheets are also useful if a publication decides to make changes to a design - say, make the story text slightly smaller. A user with proper administrative access can make the change to the master style sheet and then "send" the revised style sheets to all users, so the change is automatically reflected.

References

Worked examples

Example 1 — a first encounter with Style sheet (desktop publishing)

Start with the simplest possible case. Write down what Style sheet (desktop publishing) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Style sheet (desktop publishing) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Style sheet (desktop publishing) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Style sheet (desktop publishing)

In research
Style sheet (desktop publishing) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Style sheet (desktop publishing) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Style sheet (desktop publishing) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Desktop publishing software, so understanding it makes those chapters shorter.
In everyday life
Look for Style sheet (desktop publishing) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Style sheet (desktop publishing)” →

How to study Style sheet (desktop publishing) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Style sheet (desktop publishing) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Style sheet (desktop publishing) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Style sheet (desktop publishing) in simple terms?

A style sheet is a feature in desktop publishing programs that store and apply formatting to text. Style sheets are a form of separation of presentation and content: it creates a separate abstraction to keep the presentation isolated from the text data.

Why does Style sheet (desktop publishing) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Style sheet (desktop publishing)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Style sheet (desktop publishing).

Tags

  • Desktop publishing software

Keep exploring