A.Test Cases and Examples
This appendix provides additional test cases and examples for validating various aspects of the conversion process.
A.1Complex Mathematical Expressions
Here are some additional mathematical expressions to test rendering:
A.2Multi-Column Layout
This section demonstrates multi-column layout capabilities. The text should flow naturally between columns while maintaining proper spacing and formatting.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
Design Science principles can be applied to improve document layout and readability across different formats and devices.
A.3Special Characters and Symbols
| Symbol | Description |
| § | Section |
| ¶ | Paragraph |
| © | Copyright |
| † | Dagger |
| ‡ | Double dagger |
| $ | Dollar |
| # | Hash |
| & | Ampersand |
| % | Percent |
| _ | Underscore |
Table A.1.: Special Characters Test ### A.4Code Listings with Syntax Highlighting
A.4.1Python Example
“ 1classDocumentConverter:2 def__init__(self, input_file, output_format):3 """Initializethe converter."""4 self.input_file= input_file5 self.output_format= output_format67 defconvert(self):8 """Convertthe document to specified format."""9 try:10 withopen(self.input_file,'r')asf:11 content= f.read()12 returnself.process_content(content)13 exceptExceptionase:14 raiseConversionError(f"Failedto convert: {e}") “
A.4.2Elixir Example
“ 1 defmoduleDocumentConverterdo2 @moduledoc"""3 Asimple document converter example.4 """56 defstruct[:input_file, :output_format]78 @doc"""9 Initializesa new DocumentConverter struct.10 """11 defnew(input_file, output_format)do12 %__MODULE__{13 input_file:input_file,14 output_format:output_format15 }16 end1718 @doc"""19 Convertsthe document to the specified format.20 Returns{:ok, result} or {:error, reason}.21 """22 defconvert(%__MODULE__{input_file: input_file} = converter)do23 caseFile.read(input_file)do24 {:ok,content} ->25 process_content(converter,content)2627 {:error,reason} ->28 {:error,{:conversion_failed, reason}}29 end30 end3132 end “
A.4.3LaTeX Example
Listing A.1: Sample LaTeX Code
“ 1\documentclass[12pt]{article}2\usepackage{graphicx}3\usepackage{hyperref}45\begin{document}6\title{SampleDocument}7\author{TestAuthor}8\date{\today}910\maketitle1112\section{Introduction}13Thisis a test document.1415\end{document} “
A.5Figure Placement Tests
Figure A.1.: Nested Rectangle Test Figure ### A.6Table Alignment Tests
| Left | Center | Right |
| Text | 123.45 | 999 |
| Longer text | 0.001 | 1 |
| Very long text entry | 789.123 | 5.5 |
Table A.2.: Table Alignment Test ### A.7Cross-Reference Examples
Here are various ways to reference content:
*Simple reference: Figure A.1
*Page reference: page 68
*Multiple references: Figures A.1 and 3.3
*Equation reference: Eq. (A.1)
*Table reference: Table A.2
A.8Font and Style Tests
Bold textfor emphasisItalic textfor emphasis Small Caps Text for variety Monospace text for code Sans serif text for headings Slanted text for variation Tiny text for size test Huge text for size test
A.9List Types
A.9.1Bulleted List
*First level item
*Second level item
*Third level item
A.9.2Numbered List
-
First level item
-
Second level item
-
Third level item
-
Third level item
-
Second level item
-
Third level item
-
Third level item
A.9.3Description List
Term 1 Description of first term
Term 2 Description of second term
Subterm Nested description