Freebsd Laptop Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 7 June 2013

Docbook and LyX Part 1

Posted on 05:51 by Unknown
Category: Techwriter

LyX excels as a word processor that takes out the complications of typesetting and format conversion. LyX has support for LaTeX, XHTML, and PDF output while providing adequate support for XML and even Docbook. Although Docbook is still best written using a text editor or a capable XML editor such as Bluefish and XML Copy Editor, there are advantages to using non-commercial LyX. Longtime users of earlier versions of Docbook know that one of the advantages of Docbook is its very specific library of tags, which are arguably more restrictive than HTML5 and Dita. LyX doesn't provide access to these tags nor the typical features associated with commercial and open source XML editors. However, LyX's word processor interface and ability to export to XML make it a good starting point to begin work with a Docbook article.

In this article, we'll use LyX to create a simple Docbook article. We'll also examine the resulting XML file in XML Copy Editor while validating it with the most recent Docbook XML DTD.

Getting started using the Docbook Article template


Before beginning, check that your system has the required Docbook dependencies. This tutorial uses LyX ver. 2.06 running on Fedora 18 Xfce, which already includes most Docbook packages.  Most Linux distributions already include Docbook packages but you can check if this requirement is fulfilled in LyX.

To check Docbook support in Lyx:

1. Click Help then LaTeX Configuration.
2. Check if Docbook is "found" on the system.




If LyX reports that Docbook requirements are all right then you can begin writing your Docbook article.

To create a new document using the Docbook template:


1. Click File then New from Template...
2. Select Docbook_article.lyx
3. Click Open
4. The LyX document window will display placeholders for title, date, author, abstract, section, and a paragraph.




Since I plan to write a simple contiguous list of articles, I deleted the Abstract. Most technical writers would also probably want to adjust the depth of numbering of the sections, subsections and paragraphs.

To change section numbering in LyX:


1. Click Document then Settings . . .
2. Click Numbering & TOC on the left pane.
3. Drag the slider to determine which parts of the document will automatically be numbered by LyX.




Note: If you intend to use LyX to export the document as PDF, these settings directly control the PDF bookmarks that will be added to the PDF output. However, if you intend to export to XML and use xslt for transformations then you can skip these settings.

Docbook is a structured approach to markup so it's very useful to open LyX's Outline pane to check if your document is structured properly. Of course, LyX's structure pane won't reflect the XML tags that will be later visible once the LyX document is saved as Docbook XML but it will help keep your text organized.

To display the Outline view in LyX:


1. Click Document, then Outline.
2. Click the control buttons to manually increase or decrease the depth of sections. You can also click the arrows to move whole text blocks across the document tree. This makes arranging document sections extremely easy as compared to cutting, copying and pasting text in an XML editor.



Continued in Docbook and LyX Part 2
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Techwriter | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Drawing a Rounded Triangle in CorelDraw
    Category: Tech Writer If you need to draw a safety icon such as those found in user manuals or any icon which requires a rounde...
  • Linux on Film: The Amazing Spider-Man (2012) Part 1
    Ok, for dedicated fans of the latest Spider-Man movie (me included), Sony made use of this brilliant flick to advertise their Sony ...
  • Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 3
    Category: Tech Today Continued from Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 2 In this series of articles, we continue our ...
  • CorelDRAW X5: Adding Barcodes and QR Codes to Business cards Part 2
    QR Codes and QR Code Services Due to the popularity of QR Apps that can be installed on smartphones and iOS devices, QR codes are also becom...
  • Linux on Film: Antitrust (2001)
    *All screencaps from Antitrust (2001 ) Long-time Linux users are familiar with Antitrust (2001), which was strongly adverti...
  • CorelDraw Basics: Exporting to SVG for HTML5 web pages
    Category: Techwriter There are advantages to using SVG over the more popular PNG or JPEG when working with technical ...
  • Sony RAW (.ARW) support on openSUSE KDE
    Category: Linux Some advanced digital cameras and ILCs supports the RAW format, which many serious photographers prefer over JP...
  • Knoppix LiveUSB Basics: Bluetooth and Blueman Part 1
    Although Bluetooth has never been as reliable as a wired or RF connection, adding Bluetooth to an old machine is a simple way ...
  • Linux on Film: The Amazing Spider-Man (2012) Part 2
    Piezoelectric technology and microcontroller From a plot perspective, Peter probably made use of existing equipment like th...
  • Microsoft Product Placement in Arrow Season One Part 1
    Note: Unsolicited But Offered normally features Linux on film but in celebration of the ongoing season 2 of Arrow (w...

Categories

  • Linux
  • Linux - Mandriva
  • Linux - openSUSE
  • Tech Today
  • Techwriter
  • Travel Logs

Blog Archive

  • ▼  2013 (229)
    • ►  November (19)
    • ►  October (21)
    • ►  September (20)
    • ►  August (23)
    • ►  July (23)
    • ▼  June (21)
      • Using Tellico Citations/BibTex in LyX Part 1
      • Working with WMF in CorelDraw
      • Tails of Tor: Linux Access to the Dark Side of the...
      • Tails of Tor: Linux Access to the Dark Side of the...
      • The Dubious Art of the Username
      • Tails of Tor: Linux Access to the Dark Side Part 1
      • Linux on Film: Dredd (2012)
      • Apps for Hong Kong Part 3
      • Thoughts on "Booth Babes" Part 2
      • Apps for Hong Kong Part 2
      • Thoughts on "Booth Babes" Part 1
      • Apps for Hong Kong Part 1
      • Docbook and EPUB Part 2
      • Docbook and EPUB Part 1
      • Dragonair Airlines - Tech and Impressions
      • Docbook and LyX Part 2
      • Quick Fix: Can't play AC3 audio on a movie
      • Docbook and LyX Part 1
      • Quick Fix: Repair an MP3 file using VLC
      • A Short Chat and a Windows 8 Anecdote
      • Correcting EPUBs exported from Calligra Words usin...
    • ►  May (24)
    • ►  April (22)
    • ►  March (19)
    • ►  February (16)
    • ►  January (21)
  • ►  2012 (261)
    • ►  December (28)
    • ►  November (22)
    • ►  October (28)
    • ►  September (20)
    • ►  August (28)
    • ►  July (23)
    • ►  June (21)
    • ►  May (15)
    • ►  April (26)
    • ►  March (9)
    • ►  February (11)
    • ►  January (30)
  • ►  2011 (10)
    • ►  December (10)
Powered by Blogger.

About Me

Unknown
View my complete profile