Issues with longtable environment
I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/
This time I'm trying to build a very long table which needs more than one page. When I used the table/tabular environment, I didn't encounter issues, but the table was only one page, it did not continue next page, so it's useless. When I tried the longtable environment I get these errors:
! Argument of @let@token has an extra }
! Paragraph ended before @let@token was complete.
! Paragraph ended before contentsline was complete
I think the site is redundant when defining the colors, but this is the whole code:
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{longtable}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{color}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{bookmark}
usepackage{longtable}
tcbuselibrary{skins}
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
tables longtable
|
show 4 more comments
I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/
This time I'm trying to build a very long table which needs more than one page. When I used the table/tabular environment, I didn't encounter issues, but the table was only one page, it did not continue next page, so it's useless. When I tried the longtable environment I get these errors:
! Argument of @let@token has an extra }
! Paragraph ended before @let@token was complete.
! Paragraph ended before contentsline was complete
I think the site is redundant when defining the colors, but this is the whole code:
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{longtable}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{color}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{bookmark}
usepackage{longtable}
tcbuselibrary{skins}
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
tables longtable
2
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
2
The error seems to be connected to thespanish
etc. options ofbabel
– Christian Hupfer
2 hours ago
2
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead ofappendices
you will use switchappendix
your document is possible to compile without errors.
– Zarko
1 hour ago
1
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Alsoxcolor
supersedescolor
, so keepxcolor
– Christian Hupfer
1 hour ago
|
show 4 more comments
I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/
This time I'm trying to build a very long table which needs more than one page. When I used the table/tabular environment, I didn't encounter issues, but the table was only one page, it did not continue next page, so it's useless. When I tried the longtable environment I get these errors:
! Argument of @let@token has an extra }
! Paragraph ended before @let@token was complete.
! Paragraph ended before contentsline was complete
I think the site is redundant when defining the colors, but this is the whole code:
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{longtable}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{color}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{bookmark}
usepackage{longtable}
tcbuselibrary{skins}
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
tables longtable
I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/
This time I'm trying to build a very long table which needs more than one page. When I used the table/tabular environment, I didn't encounter issues, but the table was only one page, it did not continue next page, so it's useless. When I tried the longtable environment I get these errors:
! Argument of @let@token has an extra }
! Paragraph ended before @let@token was complete.
! Paragraph ended before contentsline was complete
I think the site is redundant when defining the colors, but this is the whole code:
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{longtable}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{color}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{bookmark}
usepackage{longtable}
tcbuselibrary{skins}
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
tables longtable
tables longtable
edited 2 hours ago
asked 3 hours ago
Xavier Pacheco Paulino
345
345
2
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
2
The error seems to be connected to thespanish
etc. options ofbabel
– Christian Hupfer
2 hours ago
2
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead ofappendices
you will use switchappendix
your document is possible to compile without errors.
– Zarko
1 hour ago
1
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Alsoxcolor
supersedescolor
, so keepxcolor
– Christian Hupfer
1 hour ago
|
show 4 more comments
2
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
2
The error seems to be connected to thespanish
etc. options ofbabel
– Christian Hupfer
2 hours ago
2
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead ofappendices
you will use switchappendix
your document is possible to compile without errors.
– Zarko
1 hour ago
1
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Alsoxcolor
supersedescolor
, so keepxcolor
– Christian Hupfer
1 hour ago
2
2
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
2
2
The error seems to be connected to the
spanish
etc. options of babel
– Christian Hupfer
2 hours ago
The error seems to be connected to the
spanish
etc. options of babel
– Christian Hupfer
2 hours ago
2
2
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead of
appendices
you will use switch appendix
your document is possible to compile without errors.– Zarko
1 hour ago
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead of
appendices
you will use switch appendix
your document is possible to compile without errors.– Zarko
1 hour ago
1
1
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Also
xcolor
supersedes color
, so keep xcolor
– Christian Hupfer
1 hour ago
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Also
xcolor
supersedes color
, so keep xcolor
– Christian Hupfer
1 hour ago
|
show 4 more comments
1 Answer
1
active
oldest
votes
There are two issues here (apart from the table being to be too wide -- I do not address this 'feature', however)
First issue: usepackage[spanish]{babel}
needs a special fontencoding, so usepackage[T1]{fontenc}
is necessary.
Second issue: The appendix
packages uses the babel form of the appendixname, i.e. Apéndice
, which is taken by hyperref
to create a hyperanchor, resulting in an anchor name with accents, which fails miserably.
The solution is to force another anchor name prefix for chapters within appendices
, i.e. defHy@chap{appendixchapters}
(or something else not screwing up the linking system and other commands). This is done with the xapptocmd
setup before begin{document}
.
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[T1]{fontenc}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{longtable}
usepackage{bookmark}
usepackage{xpatch}
tcbuselibrary{skins}
makeatletter
xapptocmd{appendices}{%
defHy@chapapp{appendixchapters}%
}{}{}
makeatother
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
See also
Tex does not compile when jointly using longtable, appendix, hyperref, and babel (spanish). Error: "! Argument of @let@token has an extra }"
and
Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
@UlrikeFischer: Agreed. I can't remember why I usedgdef
at all in my linked answer
– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467674%2fissues-with-longtable-environment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are two issues here (apart from the table being to be too wide -- I do not address this 'feature', however)
First issue: usepackage[spanish]{babel}
needs a special fontencoding, so usepackage[T1]{fontenc}
is necessary.
Second issue: The appendix
packages uses the babel form of the appendixname, i.e. Apéndice
, which is taken by hyperref
to create a hyperanchor, resulting in an anchor name with accents, which fails miserably.
The solution is to force another anchor name prefix for chapters within appendices
, i.e. defHy@chap{appendixchapters}
(or something else not screwing up the linking system and other commands). This is done with the xapptocmd
setup before begin{document}
.
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[T1]{fontenc}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{longtable}
usepackage{bookmark}
usepackage{xpatch}
tcbuselibrary{skins}
makeatletter
xapptocmd{appendices}{%
defHy@chapapp{appendixchapters}%
}{}{}
makeatother
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
See also
Tex does not compile when jointly using longtable, appendix, hyperref, and babel (spanish). Error: "! Argument of @let@token has an extra }"
and
Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
@UlrikeFischer: Agreed. I can't remember why I usedgdef
at all in my linked answer
– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
add a comment |
There are two issues here (apart from the table being to be too wide -- I do not address this 'feature', however)
First issue: usepackage[spanish]{babel}
needs a special fontencoding, so usepackage[T1]{fontenc}
is necessary.
Second issue: The appendix
packages uses the babel form of the appendixname, i.e. Apéndice
, which is taken by hyperref
to create a hyperanchor, resulting in an anchor name with accents, which fails miserably.
The solution is to force another anchor name prefix for chapters within appendices
, i.e. defHy@chap{appendixchapters}
(or something else not screwing up the linking system and other commands). This is done with the xapptocmd
setup before begin{document}
.
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[T1]{fontenc}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{longtable}
usepackage{bookmark}
usepackage{xpatch}
tcbuselibrary{skins}
makeatletter
xapptocmd{appendices}{%
defHy@chapapp{appendixchapters}%
}{}{}
makeatother
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
See also
Tex does not compile when jointly using longtable, appendix, hyperref, and babel (spanish). Error: "! Argument of @let@token has an extra }"
and
Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
@UlrikeFischer: Agreed. I can't remember why I usedgdef
at all in my linked answer
– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
add a comment |
There are two issues here (apart from the table being to be too wide -- I do not address this 'feature', however)
First issue: usepackage[spanish]{babel}
needs a special fontencoding, so usepackage[T1]{fontenc}
is necessary.
Second issue: The appendix
packages uses the babel form of the appendixname, i.e. Apéndice
, which is taken by hyperref
to create a hyperanchor, resulting in an anchor name with accents, which fails miserably.
The solution is to force another anchor name prefix for chapters within appendices
, i.e. defHy@chap{appendixchapters}
(or something else not screwing up the linking system and other commands). This is done with the xapptocmd
setup before begin{document}
.
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[T1]{fontenc}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{longtable}
usepackage{bookmark}
usepackage{xpatch}
tcbuselibrary{skins}
makeatletter
xapptocmd{appendices}{%
defHy@chapapp{appendixchapters}%
}{}{}
makeatother
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
See also
Tex does not compile when jointly using longtable, appendix, hyperref, and babel (spanish). Error: "! Argument of @let@token has an extra }"
and
Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
There are two issues here (apart from the table being to be too wide -- I do not address this 'feature', however)
First issue: usepackage[spanish]{babel}
needs a special fontencoding, so usepackage[T1]{fontenc}
is necessary.
Second issue: The appendix
packages uses the babel form of the appendixname, i.e. Apéndice
, which is taken by hyperref
to create a hyperanchor, resulting in an anchor name with accents, which fails miserably.
The solution is to force another anchor name prefix for chapters within appendices
, i.e. defHy@chap{appendixchapters}
(or something else not screwing up the linking system and other commands). This is done with the xapptocmd
setup before begin{document}
.
documentclass[a4paper]{book}
usepackage[table,xcdraw]{xcolor}
usepackage[T1]{fontenc}
usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
usepackage[titletoc]{appendix}
usepackage{ragged2e}
usepackage[numbers]{natbib}
usepackage{amssymb}
usepackage{caption}
usepackage{subcaption}
usepackage{enumerate} % needed for some options in enumerate
usepackage{makeidx} % needed for creating an index
usepackage{blindtext}
usepackage{amsmath}
usepackage{bigstrut}
usepackage{upgreek}
usepackage{listings}
usepackage{graphicx}
usepackage{array}
usepackage{tikz}
usepackage[nottoc]{tocbibind}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{pdfpages}
usepackage{pdflscape}
usepackage{titletoc}
usepackage{tcolorbox}
usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
usepackage{longtable}
usepackage{bookmark}
usepackage{xpatch}
tcbuselibrary{skins}
makeatletter
xapptocmd{appendices}{%
defHy@chapapp{appendixchapters}%
}{}{}
makeatother
begin{document}
frontmatter
listoffigures
newpage
listoftables
newpage
tableofcontents
mainmatter
chapter{First chapter}
section{F1}
begin{appendices}
chapter{Table}
begin{longtable}{|
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |
>{columncolor[HTML]{FFFFFF}}c |}
caption{My caption}
label{my-label}\
hline
{color[HTML]{000000} textbf{Cantidad}} & {color[HTML]{000000} textbf{Designante}} & {color[HTML]{000000} textbf{Referencia}} & {color[HTML]{000000} textbf{Encapsulado}} & {color[HTML]{000000} textbf{No. de parte}} \ hline
endfirsthead
%
endhead
%
{color[HTML]{000000} 1} & {color[HTML]{000000} AC/DC Converter} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Power Module\ 20W 85-264Vin 5Vout 4Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} RAC20-05SK} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}TP1, TP2, TP3, TP4, TP5\ TP6, TP7end{tabular}} & {color[HTML]{000000} Test points} & {color[HTML]{000000} SMD} & {color[HTML]{000000} 5019} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}AC1, AC2, AC3, AC4\ AC5, M+, M-end{tabular}} & {color[HTML]{000000} Metal Terminals PCB} & {color[HTML]{000000} -} & {color[HTML]{000000} 726386-2} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} F1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Fusible Cerámica\ 25A/250end{tabular}} & {color[HTML]{000000} 6.3x32mm} & {color[HTML]{000000} 0314025.MXP} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} F1 (Clips)} & {color[HTML]{000000} Clips para fusible} & {color[HTML]{000000} -} & {color[HTML]{000000} 01220083Z} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} MOV1} & {color[HTML]{000000} Varistor 150V 2.5kA} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} B72210S0151K101} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R28} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Termistor \ $2R 25Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} SL32 2R025} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} BR1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Puente Rectificador\ 35Aend{tabular}} & {color[HTML]{000000} -} & {color[HTML]{000000} GBPC3506} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C1} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Capacitor Aluminio\ 250V $1500mu F$end{tabular}} & {color[HTML]{000000} Snap In} & {color[HTML]{000000} 380LX152M250A052} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C2} & {color[HTML]{000000} MLCC Capacitor630volts $0.1mu F$ X7R} & {color[HTML]{000000} 2225} & {color[HTML]{000000} C2225C104KBRACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R7} & {color[HTML]{000000} Resistencia SMD 100k/1W} & {color[HTML]{000000} 2512} & {color[HTML]{000000} AC2512JK-07100KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} LD1, LD2, LD3, LD6} & {color[HTML]{000000} SMD LED Red Diffused} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-217/R6C-ALM2VY/3T} \ hline
{color[HTML]{000000} 7} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R4, R6, R15, R9, R36, \ R34, R18end{tabular}} & {color[HTML]{000000} Resistencia SMD 10k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0710KL} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R1, R2, R11, R35} & {color[HTML]{000000} Resistencia SMD 174R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07174RL} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}R3, R14, R20, R21, R42\ R38, R39, R16, R17, R33end{tabular}} & {color[HTML]{000000} Resistencia SMD 1k 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805CRE071KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R5} & {color[HTML]{000000} Resistencia SMD 39R 1/4W} & {color[HTML]{000000} 1206} & {color[HTML]{000000} RT1206BRD0739RL} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} Q1, Q2, Q3} & {color[HTML]{000000} BJT NPN 0.6A 40V} & {color[HTML]{000000} SOT-23-3} & {color[HTML]{000000} SST2222AHZGT116} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD5} & {color[HTML]{000000} Green SMD LED} & {color[HTML]{000000} 0603} & {color[HTML]{000000} 19-21SYGC/S530-E2/TR8} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} VO1, VO2} & {color[HTML]{000000} OPTOISOLATOR 4.17KV TRIAC} & {color[HTML]{000000} 6-SMD} & {color[HTML]{000000} MOC3061SM} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR1} & {color[HTML]{000000} Triac 600V 35A} & {color[HTML]{000000} TO-220-2} & {color[HTML]{000000} Q6035RH5} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} C3, C4} & {color[HTML]{000000} Capacitor de película0.01$mu F$ 630V} & {color[HTML]{000000} Radial} & {color[HTML]{000000} BFC236969103} \ hline
{color[HTML]{000000} 4} & {color[HTML]{000000} R8, R10, R12, R13} & {color[HTML]{000000} Resistencia SMD 330R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RE0805FRE07330RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} K1} & {color[HTML]{000000} Relay 5VDC 1 Form C (SPDT-NO, NC)} & {color[HTML]{000000} -} & {color[HTML]{000000} ALQ105} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D6} & {color[HTML]{000000} Fast Rectifier Diode 2.0A} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}SMB\ DO-214AAend{tabular}} & {color[HTML]{000000} 512-ES2D} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} TR2} & {color[HTML]{000000} Triac 16 A 600 V} & {color[HTML]{000000} D2PAK} & {color[HTML]{000000} T1650-600G-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} LD4} & {color[HTML]{000000} LED SMD Blue Water Clear} & {color[HTML]{000000} 0603} & {color[HTML]{000000} EL-19-21/BHC-AN1P2/3T} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R24} & {color[HTML]{000000} Resistencia SMD 680R 1/8W} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805FR-07680RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U7} & {color[HTML]{000000} Gate Drivers} & {color[HTML]{000000} PG-DSO-8-51} & {color[HTML]{000000} 1EDI60N12AF} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U6} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Isolated DC/DC Converters \ 1W 05Vin 12Vout 84mAend{tabular}} & {color[HTML]{000000} SMD} & {color[HTML]{000000} R1SE-0512/H2-R} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U8} & {color[HTML]{000000} Board Mount Current Sensors} & {color[HTML]{000000} PG-TISON-8-1} & {color[HTML]{000000} TLI4970D050T5XUMA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Q4} & {color[HTML]{000000} IGBT TRENCHSTOP 600V 80A} & {color[HTML]{000000} TO-247-3} & {color[HTML]{000000} IKW50N60DTPXKSA1} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D5} & {color[HTML]{000000} Rectifiers 50A, 600V Ultrafast Diode} & {color[HTML]{000000} TO-247-2} & {color[HTML]{000000} RURG5060-F085} \ hline
{color[HTML]{000000} 10} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}C5, C7, C9, C10, C13, \ C15, C10, C16\ C18, C19,end{tabular}} & {color[HTML]{000000} MLCC capacitor 16V 0.1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603C104J4RAC} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} C6, C11, C12} & {color[HTML]{000000} Capacitor electrolítico 16V 100$mu F$} & {color[HTML]{000000} Radial Leaded} & {color[HTML]{000000} ULD1C101MED1TD} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C14} & {color[HTML]{000000} MLCC Capacitor 25V 1$muF$ X7R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} C0805C105J3RACTU} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R29, R30} & {color[HTML]{000000} Resistencia SMD 10R 1/2W} & {color[HTML]{000000} 1210} & {color[HTML]{000000} RC1210JR-0710RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R25} & {color[HTML]{000000} Resistencia SMD 1/8W 100k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RC0805DR-07100KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R26} & {color[HTML]{000000} Resistencia SMD 1/8W 47k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} RT0805BRD0747KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} R41} & {color[HTML]{000000} Resistencia SMD 1/8W 20k} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805BRD0720KL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} D11} & {color[HTML]{000000} TVS Diodes 600W 5.0V} & {color[HTML]{000000} SMB} & {color[HTML]{000000} SMBJ5.0A-TR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J1, J2} & {color[HTML]{000000} CONN HEADER VERT 3POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S03-ST-BA} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U2} & {color[HTML]{000000} Op Amps Dual 2.7V} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} MCP602-I/SN} \ hline
{color[HTML]{000000} 3} & {color[HTML]{000000} JP1, JP2, JP5} & {color[HTML]{000000} 2.54mm Hdr 3P Single Str Gold} & {color[HTML]{000000} Straight Pin} & {color[HTML]{000000} begin{tabular}[c]{@{}c@{}}Pin: 61300311121\ Jumper: 382811-8end{tabular}} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U1} & {color[HTML]{000000} Analog Dual Comparators} & {color[HTML]{000000} SOIC-8} & {color[HTML]{000000} LM393MX/NOPB} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} J3} & {color[HTML]{000000} CONN HEADER VERT 4POS 2.54MM} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} SWR25X-NRTC-S04-ST-BA} \ hline
{color[HTML]{000000} 2} & {color[HTML]{000000} R19, R22, R27} & {color[HTML]{000000} Resistencia SMD 1/8W 100R} & {color[HTML]{000000} 0805} & {color[HTML]{000000} AT0805DRD07100RL} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} Microcontrolador} & {color[HTML]{000000} Development Boards & Kits - ARM STM32} & {color[HTML]{000000} -} & {color[HTML]{000000} NUCLEO-L432KC} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U3} & {color[HTML]{000000} LVDS Interface IC Single Full-Duplex} & {color[HTML]{000000} SOIC-8 150mil} & {color[HTML]{000000} SN65LVDS179DR} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C8} & {color[HTML]{000000} MLCC Capacitor 10V 1000pF} & {color[HTML]{000000} 0402} & {color[HTML]{000000} C0402C102J8RACTU} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} U5} & {color[HTML]{000000} Ethernet Connectors Female 8P Vertical} & {color[HTML]{000000} Through Hole} & {color[HTML]{000000} 615008138021} \ hline
{color[HTML]{000000} 1} & {color[HTML]{000000} C17} & {color[HTML]{000000} MLCC Capacitor 16V 1$muF$ X7R} & {color[HTML]{000000} 0603} & {color[HTML]{000000} C0603X105M4RACAUTO} \ hline
end{longtable}
newpage
chapter{Another appendix}
end{appendices}
end{document}
See also
Tex does not compile when jointly using longtable, appendix, hyperref, and babel (spanish). Error: "! Argument of @let@token has an extra }"
and
Appendix TOC link does not work when using Polyglossia (TeX Live 2015)
edited 1 hour ago
answered 1 hour ago
Christian Hupfer
147k14192384
147k14192384
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
@UlrikeFischer: Agreed. I can't remember why I usedgdef
at all in my linked answer
– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
add a comment |
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
@UlrikeFischer: Agreed. I can't remember why I usedgdef
at all in my linked answer
– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
1
1
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
hyperref uses defHy@chapapp, so it would be better to use def in your redefinition too.
– Ulrike Fischer
1 hour ago
1
1
@UlrikeFischer: Agreed. I can't remember why I used
gdef
at all in my linked answer– Christian Hupfer
1 hour ago
@UlrikeFischer: Agreed. I can't remember why I used
gdef
at all in my linked answer– Christian Hupfer
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
It works now. Thank you. Now I just need to resize the table to make it fit in one page because it's too wide and looks cut.
– Xavier Pacheco Paulino
1 hour ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
@XavierPachecoPaulino: Fitting the table to your needs is the bigger issue, I think ;-) Happy TeXing
– Christian Hupfer
55 mins ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467674%2fissues-with-longtable-environment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Could you post a compilable code, not just a snippet?
– Bernard
2 hours ago
My code is way too long. I will update the question adding the packages I'm using. The problem only comes when I use this table.
– Xavier Pacheco Paulino
2 hours ago
2
The error seems to be connected to the
spanish
etc. options ofbabel
– Christian Hupfer
2 hours ago
2
(i) your table is unnecessary complicated, if you will remove all color declaration in table you will obtain the very same result (ii) your table is to wide that can be fit on page (iii) if instead of
appendices
you will use switchappendix
your document is possible to compile without errors.– Zarko
1 hour ago
1
@XavierPachecoPaulino: You're loading some packages twice or in the wrong order. Also
xcolor
supersedescolor
, so keepxcolor
– Christian Hupfer
1 hour ago