Skip to content

Commit 1e913f4

Browse files
authored
Merge pull request #15 from ivoa-std/loumir-type-table-caption
Loumir update table caption + listing params
2 parents a60a40a + 276f7bb commit 1e913f4

1 file changed

Lines changed: 37 additions & 41 deletions

File tree

ObsCore.tex

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,34 @@
3535
\usepackage{ltablex}
3636
\usepackage{seqsplit}
3737
\usepackage{soul}
38-
\usepackage{xcolor}
39-
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
40-
41-
\lstdefinelanguage{XML}
42-
{
43-
frame=single,
44-
xleftmargin=20pt,
45-
framexleftmargin=15pt,
46-
numbers=left,
47-
numberstyle=\tiny,
48-
numbersep=5pt,
49-
breaklines=true,
50-
showstringspaces=false,
51-
basicstyle=\ttfamily\footnotesize,
52-
morestring=[b]",
53-
moredelim=[s][\bfseries\color{red}]{<}{\ },
54-
moredelim=[s][\bfseries\color{red}]{</}{>},
55-
moredelim=[l][\bfseries\color{red}]{/>},
56-
moredelim=[l][\bfseries\color{red}]{>},
57-
moredelim=[s][\bfseries\color{black}]{>}{<},
58-
morecomment=[s]{<?}{?>},
59-
morecomment=[s]{<!--}{-->},
60-
commentstyle=\color{gray},
61-
stringstyle=\color{black},
62-
keywordstyle=\color{blue},
63-
identifierstyle=\color{red}
64-
}
38+
\usepackage[dvipsnames]{xcolor}
39+
40+
% -mireille- listing params from MIVOT spec
41+
\lstset{
42+
flexiblecolumns=true,
43+
columns=fullflexible,
44+
% tagstyle=\ttfamily,
45+
showstringspaces=False,
46+
basicstyle=\tiny,
47+
captionpos=b,
48+
frame=single,
49+
commentstyle=\color{gray}\upshape,
50+
xleftmargin=20pt,
51+
framexleftmargin=15pt,
52+
numbers=left,
53+
numberstyle=\tiny,
54+
numbersep=5pt,
55+
}
56+
57+
\lstdefinelanguage{XML}{
58+
morestring=[s][\color{Mulberry}]{"}{"},
59+
morestring=[s][\color{darkgray}]{>}{<},
60+
morecomment=[s][\color{lightgray}]{!--}{-->} ,
61+
stringstyle=\color{black},
62+
identifierstyle=\color{RoyalBlue},
63+
keywordstyle=\color{ForestGreen},
64+
morekeywords={xmlns,version,encoding,schemaLocation,,xsi,status,name,url,ref,tableref,dmid,dmref,dmrole,dmtype,value,datatype,ucd,utype,xtype,arraysize,unit,type,id,ID}, % list your attributes here
65+
}
6566

6667
\begin{document}
6768

@@ -1705,7 +1706,7 @@ \section{ObsCore Data Model Detailed Description}
17051706
{proposal\_id } &
17061707
\seqsplit{Provenance.Proposal.identifier} &
17071708
unitless & string & Identifier of proposal to which observation belongs & NO\\\hline
1708-
\caption{Table X: Data model summary (with addition of axes dimension and UCD for each axis)}
1709+
\caption{Data model summary (with addition of axes dimension and UCD for each axis)}
17091710
\label{tab:6}
17101711
\end{tabularx}
17111712
%\end{landscape}
@@ -2365,12 +2366,12 @@ \subsubsection{Implementing a package of multiple data products}
23652366
three fields are integers, with this convention: (0=false, 1=true).
23662367
\end{itemize}
23672368

2368-
Tables \ref{table:tapschema-mandatory1} and \ref{table:tapschema-mandatory2} show TAP\_SCHEMA.columns values for the mandatory fields of an ObsTAP table. All Utypes have the data model
2369-
namespace prefix {}``obscore:'' omitted in the table. The Datatype, Size, Principal, Index, and Std values shown here
2369+
Tables \ref{table:tapschema-mandatory1} and \ref{table:tapschema-mandatory2} show TAP\_SCHEMA.columns values for the mandatory fields of an ObsTAP table, and Tables \ref{table:tapschema-optional} shows optional fields. All Utypes have the data model
2370+
namespace prefix ``obscore:'' omitted in the table. The Datatype, Size, Principal, Index, and Std values shown here
23702371
are informative for TAP 1.0 only; later versions of TAP may specify different values.
23712372

23722373
%TITOTOTO
2373-
\begin{sidewaystable}
2374+
\begin{sidewaystable}[hbt]
23742375
%\begin{longtable}[hbt]
23752376
\small
23762377
\begin{tabular}{|l|l|l|l|l|l|}% 6 left justified
@@ -2490,7 +2491,7 @@ \subsubsection{Implementing a package of multiple data products}
24902491
meta.number
24912492
\\\hline
24922493
\end{tabular}
2493-
\caption{TAP.schema.columns values for the mandatory fields for an ObsTAP table. Part 1. All Utypes have the data model namespace prefix {\emph obscore:} omitted in the table..}
2494+
\caption{TAP\_SCHEMA.columns values for the mandatory fields for an ObsTAP table. Part 1. All Utypes have the data model namespace prefix {\emph obscore:} omitted in the table..}
24942495
\label{table:tapschema-mandatory1}
24952496
\end{sidewaystable}
24962497

@@ -2598,7 +2599,7 @@ \subsubsection{Implementing a package of multiple data products}
25982599
meta.id;instr
25992600
\\\hline
26002601
\end{tabular}
2601-
\caption{TAP.schema.columns values for the mandatory fields for an ObsTAP table. Part 2.}
2602+
\caption{TAP\_SCHEMA.columns values for the mandatory fields for an ObsTAP table. Part 2.}
26022603
\label{table:tapschema-mandatory2}
26032604
\end{sidewaystable}
26042605

@@ -2820,7 +2821,7 @@ \subsubsection{Implementing a package of multiple data products}
28202821
meta.id; obs.proposal
28212822
\\\hline
28222823
\end{tabular}
2823-
\caption{TAP.schema.columns values for the optional fields for an ObsTAP table. All Utypes have the data model namespace prefix {\emph obscore:'} omitted in the table..}
2824+
\caption{TAP\_SCHEMA.columns values for the optional fields for an ObsTAP table. All Utypes have the data model namespace prefix {\emph obscore:'} omitted in the table..}
28242825
\label{table:tapschema-optional}
28252826
\end{sidewaystable}
28262827

@@ -2832,18 +2833,13 @@ \section{Examples of ObsTAP query responses}
28322833
It contains all mandatory fields for ObsCore1.1. and the implementation details for the Datalink service attached to the
28332834
TAP response.
28342835

2835-
% ML : use listing environment instead
2836-
2837-
%\begin{lstlisting} [language=XML, caption= Query Response]{VOtableResponseExemple.xml}
2838-
% Customize tag and attribute highlighting
2839-
28402836
\lstinputlisting[
28412837
language=XML,
28422838
caption={Query Response},
28432839
label={lst:xml_example},
2844-
basicstyle=\ttfamily\small,
2840+
%basicstyle=\ttfamily\small,
2841+
basicstyle=\footnotesize\ttfamily,
28452842
breaklines=true
28462843
]{VOtableResponseExemple.xml}
28472844

2848-
28492845
\end{document}

0 commit comments

Comments
 (0)