[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX GSoC/tex4htTesting] Updated testsreport
From:       Prannoy Pilligundla <prannoy.bits () gmail ! com>
Date:       2014-05-30 19:44:22
Message-ID: 20140530194422.988A9280428 () lyx ! lyx ! org
[Download RAW message or body]

The branch, tex4htTesting, has been updated.

- Log -----------------------------------------------------------------

commit 482638b7bc378865c7046051860e338647690eb1
Merge: 21f93f2 e009f9c
Author: Prannoy Pilligundla <prannoy.bits@gmail.com>
Date:   Sat May 31 01:13:28 2014 +0530

    Updated testsreport


commit 21f93f2d8b78f5fbcae31f0806011e4cdc9c40ee
Author: Prannoy Pilligundla <prannoy.bits@gmail.com>
Date:   Sat May 31 01:09:52 2014 +0530

    Working with figures
    
    Brought all the figures into the same directory as the tex file

diff --git a/tests/49_home_stefano_Documents_lyxtowordandback_tests_Diagram.png \
b/tests/49_home_stefano_Documents_lyxtowordandback_tests_Diagram.png new file mode \
100644 index 0000000..3e58c02
Binary files /dev/null and \
                b/tests/49_home_stefano_Documents_lyxtowordandback_tests_Diagram.png \
                differ
diff --git a/tests/50_home_stefano_Documents_lyxtowordandback_tests_Bitmap-file.png \
b/tests/50_home_stefano_Documents_lyxtowordandback_tests_Bitmap-file.png new file \
mode 100644 index 0000000..fefbdd4
Binary files /dev/null and \
                b/tests/50_home_stefano_Documents_lyxtowordandback_tests_Bitmap-file.png \
                differ
diff --git a/tests/Bitmap-file.png b/tests/Bitmap-file.png
new file mode 100644
index 0000000..fefbdd4
Binary files /dev/null and b/tests/Bitmap-file.png differ
diff --git a/tests/Bitmap-file.png.4og b/tests/Bitmap-file.png.4og
new file mode 100644
index 0000000..e69de29
diff --git a/tests/Diagram.pdf b/tests/Diagram.pdf
new file mode 100644
index 0000000..a790300
Binary files /dev/null and b/tests/Diagram.pdf differ
diff --git a/tests/LyX-Word-roundtrip-Figures.tex \
b/tests/LyX-Word-roundtrip-Figures.tex new file mode 100644
index 0000000..151eac8
--- /dev/null
+++ b/tests/LyX-Word-roundtrip-Figures.tex
@@ -0,0 +1,112 @@
+%% LyX 2.1.0dev created this file.  For more info, see http://www.lyx.org/.
+%% Do not edit unless you really know what you are doing.
+\documentclass[oneside,english,oldfontcommands,article, 11pt]{memoir}
+\usepackage[T1]{fontenc}
+\pagestyle{headings}
+\setcounter{secnumdepth}{3}
+\setcounter{tocdepth}{0}
+\usepackage{xcolor}
+\usepackage{pdfcolmk}
+\usepackage{graphicx}
+\PassOptionsToPackage{normalem}{ulem}
+\usepackage{ulem}
+
+\makeatletter
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
+\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
+\providecolor{lyxadded}{rgb}{0,0,1}
+\providecolor{lyxdeleted}{rgb}{1,0,0}
+%% Change tracking with ulem
+\DeclareRobustCommand{\lyxadded}[3]{{\color{lyxadded}{}#3}}
+\DeclareRobustCommand{\lyxdeleted}[3]{{\color{lyxdeleted}\sout{#3}}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
+\usepackage[natbib=true, style=authoryear,backend=biber]{biblatex}
+\addbibresource{/home/stefano/Documents/lyxtowordandback/tests/test.bib}
+% customize biblatex output
+\DeclareListFormat{language}{}
+\DeclareFieldFormat{isbn}{}
+\DeclareFieldFormat{issn}{}
+\DeclareFieldFormat{series}{}
+\DeclareFieldFormat{doi}{}
+\DeclareFieldFormat{url}{}
+\DeclareFieldFormat{eprint}{}
+\DeclareFieldFormat{note}{}
+
+\usepackage{lipsum}
+\usepackage{tgtermes}
+\usepackage{tgheros}
+\usepackage{tgcursor}
+\nouppercaseheads
+%\usepackage{libertine}
+
+\@ifundefined{showcaptionsetup}{}{%
+ \PassOptionsToPackage{caption=false}{subfig}}
+\usepackage{subfig}
+\makeatother
+
+\usepackage{babel}
+\begin{document}
+
+\chapter{Figures}
+
+
+\section{Inline figures}
+
+In this section we insert two figure, one a diagram in pdf format,
+and the other a bitmap file in png format. Both figures are inserted
+inline (i.e. not in a float).
+
+Here is the first figure, a diagram produced in inkscape and then
+converted (exported) to pdf 1.1. The diagram is not scaled.
+
+\includegraphics[bb = 0 0 200 100, draft, type=eps]{Diagram.pdf}
+
+Here we have, instead, a figure in .png format. The figure has been
+scaled to 30\% of its original size by \LyX{}/\LaTeX{}:
+
+\includegraphics[scale=0.3,bb = 0 0 200 100, draft, type=eps]{Bitmap-file.png}
+
+
+\section{Figures and subfigures in floats}
+
+In this section we repeat the exact same figures of the previous subsection,
+with exactly the same parameters. We have three floats overall: the
+first two floats contain a figure each, while the third float has
+both figures as sub-figures. Cross-references are not used.
+
+Following this text we have a float containing the diagram.
+\begin{figure}
+\includegraphics[bb = 0 0 200 100, draft, type=eps]{Diagram.pdf}\protect\caption{A \
diagram in a float} +
+
+\end{figure}
+
+
+Following this text we have a float containing a bitmap figure, scaled
+to 30\% of its original size. 
+\begin{figure}
+\includegraphics[scale=0.3,bb = 0 0 200 100, draft, \
type=eps]{Bitmap-file.png}\protect\caption{A bitmap picture in a float} +\end{figure}
+
+
+Following this text we have a float containing the two previous images
+as sub-figures. The diagram is scaled to 35\% of its original size,
+while the bitmap is scaled to 15\%.
+\begin{figure}
+
+
+\subfloat[\label{fig:A-diagram-as-subfigure}A diagram as \
sub-figure]{\includegraphics[scale=0.35,bb = 0 0 200 100, draft, \
type=eps]{Diagram.pdf} +
+}\subfloat[A bitmap picture as sub-figure]{
+
+\includegraphics[scale=0.15,bb = 0 0 200 100, draft, type=eps]{Bitmap-file.png}
+
+}\protect\caption{\label{fig:A-float-with-subfigure}A float containing two \
sub-figures: +a diagram and a bitmap picture}
+
+
+\end{figure}
+
+\end{document}

-----------------------------------------------------------------------

Summary of changes:
 ...no_Documents_lyxtowordandback_tests_Diagram.png |  Bin 5404 -> 5404 bytes
 ...ocuments_lyxtowordandback_tests_Bitmap-file.png |  Bin 130356 -> 130356 bytes
 tests/{Figures => }/Bitmap-file.png                |  Bin 130356 -> 130356 bytes
 tests/{Figures => }/Diagram.pdf                    |  Bin 15924 -> 15924 bytes
 tests/LyX-Word-roundtrip-Figures.tex               |  112 ++++++++++++++++++++
 5 files changed, 112 insertions(+), 0 deletions(-)
 copy tests/{Figures => \
}/49_home_stefano_Documents_lyxtowordandback_tests_Diagram.png (100%)  copy \
tests/{Figures => }/50_home_stefano_Documents_lyxtowordandback_tests_Bitmap-file.png \
(100%)  copy tests/{Figures => }/Bitmap-file.png (100%)
 create mode 100644 tests/Bitmap-file.png.4og
 copy tests/{Figures => }/Diagram.pdf (100%)
 create mode 100644 tests/LyX-Word-roundtrip-Figures.tex


hooks/post-receive
-- 
Repositories for GSOC work


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic