Hi,
On 05/06/12 01:03, Carlos Jenkins wrote:
>
> 2012/6/4 Offray Luna<
offra...@mutabit.com<mailto:
offra...@mutabit.com>>
>
> Well I don't know. May be 200. Can't be this just as long as is needed? and
> make the interface scroll the letter in the box in case you reach the limit?
>
> Well, yes... I removed the limit, please report any LaTeX failure when compiling
> the document with a large or particular title (if any). I made a commit the
> lastest changes:
>
>
http://sourceforge.net/p/nestededitor/code/242/
I've updated to the 242 revisión of the code and is working fine for
long titles. There is a problem with LaTeX export that is not related
with the longitude of titles but with the use of special document
classes. For example, this is what I have in the preamble of a LaTeX text:
```
%%% Preamble
\documentclass[paper=a4, fontsize=11pt]{scrartcl} % Article class of
KOMA-script with 11pt font and a4 format
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[protrusion=true,expansion=true]{microtype} %
Better typography
\usepackage{amsmath,amsfonts,amsthm}
% Math packages
\usepackage{graphicx} % images and graphics
\usepackage{paralist} % needed for compact lists
\usepackage[normalem]{ulem} % needed by strike
\usepackage{listings} % required for code blocks
\usepackage[urlcolor=blue,colorlinks=true,hyperfootnotes=false]{hyperref} %
links
\usepackage[utf8]{inputenc} % char encoding
\usepackage[spanish]{babel}
\usepackage[bottom]{footmisc} % footnotes
\usepackage{caption}
\usepackage{subcaption}
%%% Custom sectioning (sectsty package)
\usepackage{sectsty} %
Custom sectioning (see below)
\allsectionsfont{\centering \normalfont\scshape} % Change font of al
section commands
%%% Custom headers/footers (fancyhdr package)
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{} % No
page header
\fancyfoot[L]{\small \url{
http://kazak.com.co}} % You may
remove/edit this line
\fancyfoot[C]{} % Empty
\fancyfoot[R]{\thepage} % Pagenumbering
\renewcommand{\headrulewidth}{0pt} % Remove header underlines
\renewcommand{\footrulewidth}{0pt} % Remove footer underlines
\setlength{\headheight}{13.6pt}
\renewcommand{\thefigure}{\arabic{figure}} % Changing the way figures
are numbered
%%% Equation and float numbering
\numberwithin{equation}{section} % Equationnumbering: section.eq#
%\numberwithin{figure}{section} % Figurenumbering: section.fig#
\numberwithin{table}{section} % Tablenumbering: section.tab#
%%% Maketitle metadata
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}} % Horizontal rule
\title{
%\vspace{-1in}
\usefont{OT1}{bch}{b}{n}
\normalfont \normalsize \textsc{.:| Labs Consortium |:.} \\ [25pt]
\horrule{0.5pt} \\[0.4cm]
\huge This is the title of the template report \\
\horrule{2pt} \\[0.5cm]
}
\author{
\normalfont \normalsize
Kazak Ltda\\[-3pt] \normalsize
\today
}
\date{}
```
as you can see the preamble define a document class different of the
options given in the document properties window (Article, Book, Paper,
Report) and this can be a frequent condition of LaTeX final doc tunning,
so, in this case I think that Nested could have an extra option in the
Document Class menu and is "As defined in header". In fact the
particular markup that Nested puts before the \begindocument LaTeX
command should be put _between_ the used defined header and the
\begindocument command, so we could get a consistent behavior between
user options that can change the whole document and Nested automatically
added options for supporting links, internal refs and so on.
For the moment I'm using subfigure code to create figure arrangements in
LaTeX/pdf outputs and tables in html outputs and works fine, but now my
LaTeX and nested sources have diverged, because when I try to use %tex%
trying to set the options for image arrangements the LaTeX preamble gets
overwritten and I want to preserve it for getting the proper pdf output.
So, for me, the most important feature that Nested introduce as a
superset of txt2tags are content blocks that are treated differently.
This is want you get with "%%%", "{{{", "}}}" and "<<<", ">>>" blocks,
which are not part of the txt2tags set. The idea would be to introduce
some kind of markup that treat that content blocks in a special way if
they are processed from Nested superset and outputs to default content
in the txt2tags subset. Thats why I'm proposing something like:
%!code-block
<language>
```
<content>
```
or
%!img: <options>
[my-image.png]
I don't know how to support this features without breaking txt2tags
standard of if is possible to play with this options in a more modular
way, extending the standard without breaking it. But having a divergence
between Nested source and intended targets is not a nice option either.
For the moment I will use Leo to break LaTeX and Nested inputs and remix
them as I need to get the proper output, but I will try to help as much
as I can to get Nested as a viable option for writing structured light docs.
Cheers,
Offray