title: Using continuous curve without points

text: is it possible to use a curve without specific point to represent the data, the reason is that the data has too many points to display correctly. This is what I have (It looks all messed up) ![enter image description here](http://i.stack.imgur.com/QzoHH.png) This is the kind of curve I wish to have ![enter image description here](http://i.stack.imgur.com/kTltd.png) Here is the latex code x-axis(1-400) increased increased, y-axis converged to a value. Here is the code with data               \documentclass[9pt]{article}     % GRAPHICS     \usepackage{pgf}     \usepackage{graphicx}     \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{arrows,automata,positioning}     \begin{document}     \pgfplotsset{     xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},     every axis/.append style={     font=\sffamily,       width=6.5cm,         height=4.9cm     }     }          \begin{tikzpicture}[font=\sffamily]     \begin{axis}[title=\textbf{QWS Dataset},         legend pos=outer north east,                     ytick={0,0.2,...,1},                     legend pos=outer north east,                     legend style={draw=none},                     xtick={0,200,...,1000},                     scaled ticks=false,                     log ticks with fixed point={1000 sep=},                     axis x line=bottom,                     axis y line=left,                     axis line style=-,                     minor tick style={draw=none},             ylabel = Optimality (\%),             xlabel = Number of Generation     ]     \addplot plot coordinates{(0,0.286803995268681)(0,0.293986647767033)(1,0.293986647767033)(2,0.293986647767033)(3,0.293986647767033)(4,0.296941042144544)(5,0.296941042144544)(6,0.840289302662629)(7,0.883725575957752)(8,0.883725575957752)(9,0.883725575957752)(10,0.883725575957752)(11,0.888401316547969)(12,0.888401316547969)(13,0.888401316547969)(14,0.888401316547969)(15,0.888401316547969)(16,0.888401316547969)(17,0.888401316547969)(18,0.888401316547969)(19,0.888401316547969)(20,0.888401316547969)(21,0.888401316547969)(22,0.888401316547969)(23,0.888401316547969)(24,0.888401316547969)(25,0.888401316547969)(26,0.888401316547969)(27,0.888401316547969)(28,0.888401316547969)(29,0.888401316547969)(30,0.888401316547969)(31,0.888401316547969)(32,0.888401316547969)(33,0.888401316547969)(34,0.888401316547969)(35,0.888549662438951)(36,0.888549662438951)(37,0.888549662438951)(38,0.888549662438951)(39,0.894067099804665)(40,0.894067099804665)(41,0.894067099804665)(42,0.894067099804665)(43,0.894067099804665)(44,0.894067099804665)(45,0.894067099804665)(46,0.894147773567333)(47,0.894147773567333)(48,0.901221579313708)(49,0.901221579313708)(50,0.901221579313708)(51,0.901221579313708)(52,0.913119929645424)(53,0.913119929645424)(54,0.913119929645424)(55,0.913119929645424)(56,0.913119929645424)(57,0.913119929645424)(58,0.913119929645424)(59,0.913119929645424)(60,0.913119929645424)(61,0.913119929645424)(62,0.913119929645424)(63,0.913119929645424)(64,0.913119929645424)(65,0.913119929645424)(66,0.913119929645424)(67,0.913119929645424)(68,0.913119929645424)(69,0.913119929645424)(70,0.913119929645424)(71,0.913119929645424)(72,0.913119929645424)(73,0.913119929645424)(74,0.913119929645424)(75,0.913119929645424)(76,0.913119929645424)(77,0.913119929645424)(78,0.913119929645424)(79,0.913119929645424)(80,0.913119929645424)(81,0.913119929645424)(82,0.913119929645424)(83,0.913119929645424)(84,0.913119929645424)(85,0.913119929645424)(86,0.913119929645424)(87,0.913119929645424)(88,0.913119929645424)(89,0.913119929645424)(90,0.913119929645424)(91,0.913119929645424)(92,0.913119929645424)(93,0.913119929645424)(94,0.913119929645424)(95,0.913119929645424)(96,0.913119929645424)(97,0.913119929645424)(98,0.913119929645424)(99,0.913119929645424)(100,0.913119929645424)(101,0.913119929645424)(102,0.913119929645424)(103,0.913119929645424)(104,0.913119929645424)(105,0.913119929645424)(106,0.913119929645424)(107,0.913119929645424)(108,0.913119929645424)(109,0.913119929645424)(110,0.913119929645424)(111,0.913119929645424)(112,0.913119929645424)(113,0.913119929645424)(114,0.913119929645424)(115,0.913119929645424)(116,0.913119929645424)(117,0.913119929645424)(118,0.913119929645424)(119,0.913119929645424)(120,0.913119929645424)(121,0.913119929645424)(122,0.913119929645424)(123,0.913119929645424)(124,0.913119929645424)(125,0.913119929645424)(126,0.913119929645424)(127,0.913119929645424)(128,0.913119929645424)(129,0.913119929645424)(130,0.913119929645424)(131,0.913119929645424)(132,0.913119929645424)(133,0.913119929645424)(134,0.913119929645424)(135,0.913119929645424)(136,0.913119929645424)(137,0.913119929645424)(138,0.913119929645424)(139,0.913119929645424)(140,0.913119929645424)(141,0.913119929645424)(142,0.913119929645424)(143,0.913119929645424)(144,0.913119929645424)(145,0.913119929645424)(146,0.913119929645424)(147,0.913119929645424)(148,0.913119929645424)(149,0.913119929645424)(150,0.913119929645424)(151,0.913119929645424)(152,0.913119929645424)(153,0.913119929645424)(154,0.913119929645424)(155,0.913119929645424)(156,0.913119929645424)(157,0.913119929645424)(158,0.913119929645424)(159,0.913119929645424)(160,0.913119929645424)(161,0.913119929645424)(162,0.913119929645424)(163,0.913119929645424)(164,0.913119929645424)(165,0.913119929645424)(166,0.913119929645424)(167,0.913119929645424)(168,0.913119929645424)(169,0.913119929645424)(170,0.913119929645424)(171,0.913119929645424)(172,0.913119929645424)(173,0.913119929645424)(174,0.913119929645424)(175,0.913119929645424)(176,0.913119929645424)(177,0.913119929645424)(178,0.913119929645424)(179,0.913119929645424)(180,0.913119929645424)(181,0.913119929645424)(182,0.913119929645424)(183,0.913119929645424)(184,0.913119929645424)(185,0.913119929645424)(186,0.913119929645424)(187,0.913119929645424)(188,0.913119929645424)(189,0.913119929645424)(190,0.913119929645424)(191,0.913119929645424)(192,0.913119929645424)(193,0.913119929645424)(194,0.913119929645424)(195,0.913119929645424)(196,0.913119929645424)(197,0.913119929645424)(198,0.913119929645424)(199,0.913119929645424)(200,0.913119929645424)(201,0.913119929645424)(202,0.913951685219313)(203,0.913951685219313)(204,0.913951685219313)(205,0.913951685219313)(206,0.913951685219313)(207,0.913951685219313)(208,0.913951685219313)(209,0.913951685219313)(210,0.913951685219313)(211,0.913951685219313)(212,0.913951685219313)(213,0.913951685219313)(214,0.913951685219313)(215,0.913951685219313)(216,0.913951685219313)(217,0.913951685219313)(218,0.913951685219313)(219,0.913951685219313)(220,0.913951685219313)(221,0.913951685219313)(222,0.913951685219313)(223,0.913951685219313)(224,0.913951685219313)(225,0.913951685219313)(226,0.913951685219313)(227,0.913951685219313)(228,0.913951685219313)(229,0.913951685219313)(230,0.913951685219313)(231,0.913951685219313)(232,0.926293607531258)(233,0.926293607531258)(234,0.926293607531258)(235,0.926293607531258)(236,0.926293607531258)(237,0.926293607531258)(238,0.926293607531258)(239,0.926293607531258)(240,0.926293607531258)(241,0.926293607531258)(242,0.926293607531258)(243,0.926293607531258)(244,0.926293607531258)(245,0.926293607531258)(246,0.926293607531258)(247,0.926293607531258)(248,0.926293607531258)(249,0.926293607531258)(250,0.926293607531258)(251,0.926293607531258)(252,0.926293607531258)(253,0.926293607531258)(254,0.926293607531258)(255,0.926293607531258)(256,0.926293607531258)(257,0.926293607531258)(258,0.926293607531258)(259,0.926293607531258)(260,0.926293607531258)(261,0.926293607531258)(262,0.926293607531258)(263,0.926293607531258)(264,0.926293607531258)(265,0.926293607531258)(266,0.926293607531258)(267,0.926293607531258)(268,0.926293607531258)(269,0.926293607531258)(270,0.926293607531258)(271,0.926293607531258)(272,0.926293607531258)(273,0.926293607531258)(274,0.926293607531258)(275,0.926293607531258)(276,0.926293607531258)(277,0.926293607531258)(278,0.926293607531258)(279,0.926293607531258)(280,0.926293607531258)(281,0.926293607531258)(282,0.926293607531258)(283,0.926293607531258)(284,0.926293607531258)(285,0.926293607531258)(286,0.926293607531258)(287,0.926293607531258)(288,0.926293607531258)(289,0.926293607531258)(290,0.926293607531258)(291,0.926293607531258)(292,0.926293607531258)(293,0.926293607531258)(294,0.926293607531258)(295,0.926293607531258)(296,0.926293607531258)(297,0.926293607531258)(298,0.926293607531258)(299,0.926293607531258)(300,0.926293607531258)(301,0.926293607531258)(302,0.926293607531258)(303,0.926293607531258)(304,0.926293607531258)(305,0.926293607531258)};     \addplot plot coordinates{(0,0.893138221303528)(0,0.897063840513733)(1,0.909783376964972)(2,0.909783376964972)(3,0.909783376964972)(4,0.909783376964972)(5,0.909783376964972)(6,0.909783376964972)(7,0.916174495807532)(8,0.916174495807532)(9,0.916174495807532)(10,0.916174495807532)(11,0.916174495807532)(12,0.916174495807532)(13,0.916174495807532)(14,0.916174495807532)(15,0.916174495807532)(16,0.916174495807532)(17,0.916174495807532)(18,0.916174495807532)(19,0.923123748748984)(20,0.923123748748984)(21,0.923123748748984)(22,0.923123748748984)(23,0.923123748748984)(24,0.923123748748984)(25,0.923123748748984)(26,0.923123748748984)(27,0.923123748748984)(28,0.923123748748984)(29,0.923123748748984)(30,0.923123748748984)(31,0.923123748748984)(32,0.923123748748984)(33,0.923123748748984)(34,0.923123748748984)(35,0.923123748748984)(36,0.923123748748984)(37,0.923123748748984)(38,0.923123748748984)(39,0.923123748748984)(40,0.923123748748984)(41,0.923123748748984)(42,0.923123748748984)(43,0.923123748748984)(44,0.923123748748984)(45,0.923123748748984)(46,0.923123748748984)(47,0.923123748748984)(48,0.923123748748984)(49,0.923123748748984)(50,0.923123748748984)(51,0.923123748748984)(52,0.923123748748984)(53,0.923123748748984)(54,0.923123748748984)(55,0.923123748748984)(56,0.923123748748984)(57,0.923123748748984)(58,0.923123748748984)(59,0.923123748748984)(60,0.923123748748984)(61,0.923123748748984)(62,0.923123748748984)(63,0.928081390466589)(64,0.928770771366713)(65,0.928770771366713)(66,0.928770771366713)(67,0.928770771366713)(68,0.928770771366713)(69,0.928770771366713)(70,0.928770771366713)(71,0.928770771366713)(72,0.928770771366713)(73,0.928770771366713)(74,0.928770771366713)(75,0.928770771366713)(76,0.928770771366713)(77,0.928770771366713)(78,0.928770771366713)(79,0.928770771366713)(80,0.928770771366713)(81,0.928770771366713)(82,0.928770771366713)(83,0.928770771366713)(84,0.928770771366713)(85,0.928770771366713)(86,0.928770771366713)(87,0.928770771366713)(88,0.928770771366713)(89,0.928770771366713)(90,0.928770771366713)(91,0.928770771366713)(92,0.928770771366713)(93,0.929469960005271)(94,0.929469960005271)(95,0.929469960005271)(96,0.929469960005271)(97,0.929469960005271)(98,0.929469960005271)(99,0.929469960005271)(100,0.929469960005271)(101,0.929469960005271)(102,0.929469960005271)(103,0.929469960005271)(104,0.929469960005271)(105,0.929469960005271)(106,0.929469960005271)(107,0.929469960005271)(108,0.929469960005271)(109,0.929469960005271)(110,0.929469960005271)(111,0.929469960005271)(112,0.929469960005271)(113,0.929469960005271)(114,0.929469960005271)(115,0.929469960005271)(116,0.929469960005271)(117,0.929469960005271)(118,0.929469960005271)(119,0.929469960005271)(120,0.929469960005271)(121,0.929469960005271)(122,0.929469960005271)(123,0.929469960005271)(124,0.929469960005271)(125,0.929469960005271)(126,0.929469960005271)(127,0.929469960005271)(128,0.929469960005271)(129,0.929469960005271)(130,0.929469960005271)(131,0.929469960005271)(132,0.929469960005271)(133,0.929469960005271)(134,0.929469960005271)(135,0.929469960005271)(136,0.929469960005271)(137,0.929469960005271)(138,0.929469960005271)(139,0.929469960005271)(140,0.929469960005271)(141,0.929469960005271)(142,0.929469960005271)(143,0.929469960005271)(144,0.929469960005271)(145,0.929469960005271)(146,0.929469960005271)(147,0.929469960005271)(148,0.929469960005271)(149,0.929469960005271)(150,0.929469960005271)(151,0.929469960005271)(152,0.929469960005271)(153,0.929469960005271)(154,0.929469960005271)(155,0.929469960005271)(156,0.929469960005271)(157,0.929469960005271)(158,0.929469960005271)(159,0.929469960005271)(160,0.929469960005271)(161,0.929469960005271)(162,0.929469960005271)(163,0.929469960005271)(164,0.929469960005271)(165,0.929469960005271)(166,0.929469960005271)(167,0.929469960005271)(168,0.929469960005271)(169,0.929469960005271)(170,0.929469960005271)(171,0.929469960005271)(172,0.929469960005271)(173,0.929469960005271)(174,0.929469960005271)(175,0.929469960005271)(176,0.929469960005271)(177,0.929469960005271)(178,0.929469960005271)(179,0.929469960005271)(180,0.929469960005271)(181,0.929469960005271)(182,0.929469960005271)(183,0.929469960005271)(184,0.929469960005271)(185,0.929469960005271)(186,0.929469960005271)(187,0.929469960005271)(188,0.929469960005271)(189,0.929469960005271)(190,0.929469960005271)(191,0.929469960005271)(192,0.929469960005271)(193,0.929469960005271)(194,0.929469960005271)(195,0.929469960005271)(196,0.929469960005271)(197,0.932228612347654)(198,0.932228612347654)(199,0.932228612347654)(200,0.932228612347654)(201,0.932228612347654)(202,0.932228612347654)(203,0.932228612347654)(204,0.932228612347654)(205,0.932228612347654)(206,0.932228612347654)(207,0.932228612347654)(208,0.932228612347654)(209,0.932228612347654)(210,0.932228612347654)(211,0.932228612347654)(212,0.932228612347654)(213,0.932228612347654)(214,0.932228612347654)(215,0.932228612347654)(216,0.932228612347654)(217,0.932228612347654)(218,0.932228612347654)(219,0.932228612347654)(220,0.932228612347654)(221,0.932228612347654)(222,0.932228612347654)(223,0.932228612347654)(224,0.932228612347654)(225,0.932228612347654)(226,0.932228612347654)(227,0.932228612347654)(228,0.932228612347654)(229,0.932228612347654)(230,0.932228612347654)(231,0.932228612347654)(232,0.932228612347654)(233,0.932228612347654)(234,0.932228612347654)(235,0.932228612347654)(236,0.932228612347654)(237,0.932228612347654)(238,0.932228612347654)(239,0.932228612347654)(240,0.932228612347654)(241,0.932228612347654)(242,0.932228612347654)(243,0.932228612347654)(244,0.932228612347654)(245,0.932228612347654)(246,0.932228612347654)(247,0.932228612347654)(248,0.932228612347654)(249,0.932228612347654)(250,0.932228612347654)(251,0.932228612347654)(252,0.932228612347654)(253,0.932228612347654)(254,0.932228612347654)(255,0.932228612347654)(256,0.932228612347654)(257,0.932228612347654)(258,0.932228612347654)(259,0.932228612347654)(260,0.932228612347654)(261,0.932228612347654)(262,0.932228612347654)(263,0.932228612347654)(264,0.932228612347654)(265,0.932228612347654)(266,0.932228612347654)(267,0.932228612347654)(268,0.932228612347654)(269,0.932228612347654)(270,0.932228612347654)(271,0.932228612347654)(272,0.932228612347654)(273,0.932228612347654)(274,0.932228612347654)(275,0.932228612347654)(276,0.932228612347654)(277,0.932228612347654)(278,0.932228612347654)(279,0.932228612347654)(280,0.932228612347654)(281,0.932228612347654)(282,0.932228612347654)(283,0.932228612347654)(284,0.932228612347654)(285,0.932228612347654)(286,0.932228612347654)(287,0.932228612347654)(288,0.932228612347654)(289,0.932228612347654)(290,0.932228612347654)(291,0.932228612347654)(292,0.932228612347654)(293,0.932228612347654)(294,0.934752415889315)(295,0.934752415889315)(296,0.934752415889315)(297,0.934752415889315)(298,0.934752415889315)(299,0.934752415889315)};     \addplot plot coordinates{(0,0.340197581462877)(1,0.340197581462877)(2,0.340197581462877)(3,0.340197581462877)(4,0.340197581462877)(5,0.340197581462877)(6,0.340197581462877)(7,0.340197581462877)(8,0.340197581462877)(9,0.340197581462877)(10,0.340197581462877)(11,0.340197581462877)(12,0.340197581462877)(13,0.340197581462877)(14,0.340197581462877)(15,0.340197581462877)(16,0.340197581462877)(17,0.340197581462877)(18,0.340197581462877)(19,0.340197581462877)(20,0.340197581462877)(21,0.340197581462877)(22,0.340197581462877)(23,0.340197581462877)(24,0.340197581462877)(25,0.340197581462877)(26,0.340197581462877)(27,0.340197581462877)(28,0.340197581462877)(29,0.340197581462877)(30,0.340197581462877)(31,0.340197581462877)(32,0.340197581462877)(33,0.340197581462877)(34,0.340197581462877)(35,0.340197581462877)(36,0.340197581462877)(37,0.340197581462877)(38,0.340197581462877)(39,0.340197581462877)(40,0.340197581462877)(41,0.340197581462877)(42,0.340197581462877)(43,0.340197581462877)(44,0.340197581462877)(45,0.340197581462877)(46,0.340197581462877)(47,0.340197581462877)(48,0.340197581462877)(49,0.340197581462877)(50,0.340197581462877)(51,0.340197581462877)(52,0.340197581462877)(53,0.341579087464805)(54,0.341579087464805)(55,0.345096385457239)(56,0.345096385457239)(57,0.345096385457239)(58,0.345096385457239)(59,0.345096385457239)(60,0.345096385457239)(61,0.345096385457239)(62,0.345096385457239)(63,0.345096385457239)(64,0.345096385457239)(65,0.345096385457239)(66,0.345096385457239)(67,0.345096385457239)(68,0.345096385457239)(69,0.345096385457239)(70,0.345096385457239)(71,0.345096385457239)(72,0.345096385457239)(73,0.345096385457239)(74,0.345096385457239)(75,0.345096385457239)(76,0.345096385457239)(77,0.345096385457239)(78,0.345096385457239)(79,0.345096385457239)(80,0.345096385457239)(81,0.345096385457239)(82,0.345096385457239)(83,0.345096385457239)(84,0.345096385457239)(85,0.345096385457239)(86,0.345096385457239)(87,0.345096385457239)(88,0.345096385457239)(89,0.345096385457239)(90,0.345096385457239)(91,0.345096385457239)(92,0.345096385457239)(93,0.345096385457239)(94,0.345096385457239)(95,0.345096385457239)(96,0.345096385457239)(97,0.345096385457239)(98,0.345096385457239)(99,0.345096385457239)(100,0.345096385457239)(101,0.345096385457239)(102,0.345096385457239)(103,0.345096385457239)(104,0.345096385457239)(105,0.345096385457239)(106,0.345096385457239)(107,0.345096385457239)(108,0.345096385457239)(109,0.345096385457239)(110,0.923214304886365)(111,0.923214304886365)(112,0.923214304886365)(113,0.923214304886365)(114,0.933619414598761)(115,0.933619414598761)(116,0.933619414598761)(117,0.933619414598761)(118,0.936233644792674)(119,0.936233644792674)(120,0.936233644792674)(121,0.936233644792674)(122,0.936233644792674)(123,0.941115256469114)(124,0.941115256469114)(125,0.941115256469114)(126,0.941115256469114)(127,0.941115256469114)(128,0.941115256469114)(129,0.941115256469114)(130,0.941115256469114)(131,0.941221477176068)(132,0.941221477176068)(133,0.941221477176068)(134,0.944579485331057)(135,0.944579485331057)(136,0.944579485331057)(137,0.944579485331057)(138,0.944579485331057)(139,0.944579485331057)(140,0.944579485331057)(141,0.944579485331057)(142,0.944579485331057)(143,0.944579485331057)(144,0.944579485331057)(145,0.944579485331057)(146,0.944579485331057)(147,0.944579485331057)(148,0.944579485331057)(149,0.944579485331057)(150,0.944579485331057)(151,0.944579485331057)(152,0.944579485331057)(153,0.944579485331057)(154,0.944579485331057)(155,0.944579485331057)(156,0.944579485331057)(157,0.944579485331057)(158,0.944579485331057)(159,0.944579485331057)(160,0.944579485331057)(161,0.944579485331057)(162,0.944579485331057)(163,0.944579485331057)(164,0.944579485331057)(165,0.944579485331057)(166,0.944579485331057)(167,0.944579485331057)(168,0.944579485331057)(169,0.944579485331057)(170,0.944579485331057)(171,0.944579485331057)(172,0.944579485331057)(173,0.944579485331057)(174,0.944579485331057)(175,0.944579485331057)(176,0.944579485331057)(177,0.944579485331057)(178,0.944579485331057)(179,0.944579485331057)(180,0.944579485331057)(181,0.944579485331057)(182,0.944579485331057)(183,0.944579485331057)(184,0.944579485331057)(185,0.944579485331057)(186,0.944579485331057)(187,0.944579485331057)(188,0.944579485331057)(189,0.944579485331057)(190,0.944579485331057)(191,0.944579485331057)(192,0.944579485331057)(193,0.944579485331057)(194,0.944579485331057)(195,0.944579485331057)(196,0.944579485331057)(197,0.944579485331057)(198,0.944579485331057)(199,0.944579485331057)(200,0.944579485331057)(201,0.944579485331057)(202,0.944579485331057)(203,0.944579485331057)(204,0.944579485331057)(205,0.944579485331057)(206,0.944579485331057)(207,0.944579485331057)(208,0.944579485331057)(209,0.944579485331057)(210,0.944579485331057)(211,0.944579485331057)(212,0.944579485331057)(213,0.944579485331057)(214,0.944579485331057)(215,0.944579485331057)(216,0.944579485331057)(217,0.944579485331057)(218,0.944579485331057)(219,0.944579485331057)(220,0.944579485331057)(221,0.944579485331057)(222,0.944579485331057)(223,0.944579485331057)(224,0.944579485331057)(225,0.944579485331057)(226,0.944579485331057)(227,0.944579485331057)(228,0.944579485331057)(229,0.944579485331057)(230,0.944579485331057)(231,0.944579485331057)(232,0.944579485331057)(233,0.944579485331057)(234,0.944579485331057)(235,0.944579485331057)(236,0.944579485331057)(237,0.949135451187557)(238,0.949135451187557)(239,0.949135451187557)(240,0.949135451187557)(241,0.949135451187557)(242,0.949135451187557)(243,0.949135451187557)(244,0.949135451187557)(245,0.949135451187557)(246,0.949135451187557)(247,0.949135451187557)(248,0.949135451187557)(249,0.949135451187557)(250,0.949135451187557)(251,0.949135451187557)(252,0.949135451187557)(253,0.949135451187557)(254,0.949135451187557)(255,0.949135451187557)(256,0.949135451187557)(257,0.949135451187557)(258,0.949135451187557)(259,0.949135451187557)(260,0.949135451187557)(261,0.949135451187557)(262,0.949135451187557)(263,0.949135451187557)(264,0.949135451187557)(265,0.949135451187557)(266,0.949135451187557)(267,0.949135451187557)(268,0.949135451187557)(269,0.949135451187557)(270,0.949135451187557)(271,0.949135451187557)(272,0.949135451187557)(273,0.949135451187557)(274,0.949135451187557)(275,0.949135451187557)(276,0.949135451187557)(277,0.949135451187557)(278,0.949135451187557)(279,0.949135451187557)(280,0.949135451187557)(281,0.949135451187557)(282,0.949135451187557)(283,0.949135451187557)(284,0.949135451187557)(285,0.949135451187557)(286,0.949135451187557)(287,0.949135451187557)(288,0.949135451187557)(289,0.949135451187557)(290,0.949135451187557)(291,0.949135451187557)(292,0.949135451187557)(293,0.949135451187557)(294,0.949135451187557)(295,0.949135451187557)(296,0.949135451187557)(297,0.949135451187557)(298,0.949135451187557)(299,0.949135451187557)(300,0.949135451187557)(301,0.949135451187557)(302,0.949135451187557)};     \addplot plot coordinates{(0,0.340197581462877)(1,0.340197581462877)(2,0.340197581462877)(3,0.340197581462877)(4,0.340197581462877)(5,0.340197581462877)(6,0.340197581462877)(7,0.340197581462877)(8,0.340197581462877)(9,0.340197581462877)(10,0.340197581462877)(11,0.340197581462877)(12,0.340197581462877)(13,0.340197581462877)(14,0.340197581462877)(15,0.340197581462877)(16,0.340197581462877)(17,0.340197581462877)(18,0.340197581462877)(19,0.340197581462877)(20,0.340197581462877)(21,0.340197581462877)(22,0.340197581462877)(23,0.340197581462877)(24,0.340197581462877)(25,0.340197581462877)(26,0.340197581462877)(27,0.340197581462877)(28,0.340197581462877)(29,0.340197581462877)(30,0.340197581462877)(31,0.340197581462877)(32,0.340197581462877)(33,0.340197581462877)(34,0.340197581462877)(35,0.340197581462877)(36,0.340197581462877)(37,0.340197581462877)(38,0.340197581462877)(39,0.340197581462877)(40,0.340197581462877)(41,0.340197581462877)(42,0.340197581462877)(43,0.340197581462877)(44,0.340197581462877)(45,0.340197581462877)(46,0.340197581462877)(47,0.340197581462877)(48,0.340197581462877)(49,0.340197581462877)(50,0.340197581462877)(51,0.340197581462877)(52,0.340197581462877)(53,0.340197581462877)(54,0.340718810490398)(55,0.340947173204765)(56,0.340947173204765)(57,0.344557306311141)(58,0.344557306311141)(59,0.344557306311141)(60,0.344557306311141)(61,0.344557306311141)(62,0.344557306311141)(63,0.344557306311141)(64,0.345096385457239)(65,0.345096385457239)(66,0.345096385457239)(67,0.345096385457239)(68,0.345096385457239)(69,0.345096385457239)(70,0.345096385457239)(71,0.345096385457239)(72,0.345096385457239)(73,0.345096385457239)(74,0.345096385457239)(75,0.345096385457239)(76,0.345096385457239)(77,0.345096385457239)(78,0.345096385457239)(79,0.345096385457239)(80,0.345096385457239)(81,0.345096385457239)(82,0.345096385457239)(83,0.345096385457239)(84,0.345096385457239)(85,0.345096385457239)(86,0.345096385457239)(87,0.345096385457239)(88,0.345096385457239)(89,0.345096385457239)(90,0.345096385457239)(91,0.345096385457239)(92,0.345096385457239)(93,0.345096385457239)(94,0.345096385457239)(95,0.345096385457239)(96,0.345096385457239)(97,0.345096385457239)(98,0.345096385457239)(99,0.345096385457239)(100,0.345096385457239)(101,0.345096385457239)(102,0.345096385457239)(103,0.345096385457239)(104,0.345096385457239)(105,0.345096385457239)(106,0.345096385457239)(107,0.345096385457239)(108,0.345096385457239)(109,0.345096385457239)(110,0.345096385457239)(111,0.345096385457239)(112,0.345096385457239)(113,0.345096385457239)(114,0.345096385457239)(115,0.345096385457239)(116,0.345096385457239)(117,0.345096385457239)(118,0.345096385457239)(119,0.345096385457239)(120,0.345096385457239)(121,0.93346075957151)(122,0.938259689585135)(123,0.938259689585135)(124,0.938259689585135)(125,0.940212485558681)(126,0.940212485558681)(127,0.940212485558681)(128,0.940212485558681)(129,0.940717035777305)(130,0.940717035777305)(131,0.940717035777305)(132,0.940717035777305)(133,0.940717035777305)(134,0.940717035777305)(135,0.940717035777305)(136,0.940717035777305)(137,0.940717035777305)(138,0.940717035777305)(139,0.940717035777305)(140,0.940717035777305)(141,0.940717035777305)(142,0.940717035777305)(143,0.940717035777305)(144,0.940717035777305)(145,0.940717035777305)(146,0.940717035777305)(147,0.940717035777305)(148,0.943137433357112)(149,0.943137433357112)(150,0.943137433357112)(151,0.943137433357112)(152,0.943137433357112)(153,0.943137433357112)(154,0.943137433357112)(155,0.943137433357112)(156,0.943137433357112)(157,0.943137433357112)(158,0.943137433357112)(159,0.943137433357112)(160,0.943137433357112)(161,0.943137433357112)(162,0.943137433357112)(163,0.943137433357112)(164,0.943137433357112)(165,0.943137433357112)(166,0.943137433357112)(167,0.943137433357112)(168,0.943137433357112)(169,0.943137433357112)(170,0.943137433357112)(171,0.943824129539037)(172,0.943824129539037)(173,0.943824129539037)(174,0.943824129539037)(175,0.943824129539037)(176,0.943824129539037)(177,0.943824129539037)(178,0.943824129539037)(179,0.943824129539037)(180,0.943824129539037)(181,0.943824129539037)(182,0.943824129539037)(183,0.943824129539037)(184,0.943824129539037)(185,0.943824129539037)(186,0.943824129539037)(187,0.943824129539037)(188,0.943824129539037)(189,0.943824129539037)(190,0.943824129539037)(191,0.943824129539037)(192,0.943824129539037)(193,0.943824129539037)(194,0.943824129539037)(195,0.943824129539037)(196,0.943824129539037)(197,0.943824129539037)(198,0.943824129539037)(199,0.943824129539037)(200,0.943824129539037)(201,0.943824129539037)(202,0.943824129539037)(203,0.943824129539037)(204,0.943824129539037)(205,0.943824129539037)(206,0.944473264624103)(207,0.944473264624103)(208,0.944473264624103)(209,0.944473264624103)(210,0.944473264624103)(211,0.944473264624103)(212,0.944473264624103)(213,0.944473264624103)(214,0.944473264624103)(215,0.944473264624103)(216,0.944473264624103)(217,0.944473264624103)(218,0.944473264624103)(219,0.944473264624103)(220,0.944473264624103)(221,0.944473264624103)(222,0.944473264624103)(223,0.944473264624103)(224,0.944473264624103)(225,0.944473264624103)(226,0.944473264624103)(227,0.944473264624103)(228,0.944473264624103)(229,0.944473264624103)(230,0.944473264624103)(231,0.944473264624103)(232,0.944473264624103)(233,0.944473264624103)(234,0.944473264624103)(235,0.944473264624103)(236,0.944473264624103)(237,0.944473264624103)(238,0.944473264624103)(239,0.944473264624103)(240,0.944473264624103)(241,0.944473264624103)(242,0.944473264624103)(243,0.944473264624103)(244,0.944473264624103)(245,0.944579485331057)(246,0.944579485331057)(247,0.944579485331057)(248,0.944579485331057)(249,0.944579485331057)(250,0.944579485331057)(251,0.944579485331057)(252,0.944579485331057)(253,0.944579485331057)(254,0.944579485331057)(255,0.944579485331057)(256,0.944579485331057)(257,0.944579485331057)(258,0.944579485331057)(259,0.944579485331057)(260,0.944579485331057)(261,0.944579485331057)(262,0.944579485331057)(263,0.944579485331057)(264,0.944579485331057)(265,0.944579485331057)(266,0.944579485331057)(267,0.944579485331057)(268,0.944579485331057)(269,0.944579485331057)(270,0.944579485331057)(271,0.944579485331057)(272,0.944579485331057)(273,0.944579485331057)(274,0.944579485331057)(275,0.944579485331057)(276,0.944579485331057)(277,0.944579485331057)(278,0.944579485331057)(279,0.944579485331057)(280,0.944579485331057)(281,0.944579485331057)(282,0.944579485331057)(283,0.944579485331057)(284,0.944579485331057)(285,0.944579485331057)(286,0.944579485331057)(287,0.944579485331057)(288,0.944579485331057)(289,0.944579485331057)(290,0.944579485331057)(291,0.944579485331057)(292,0.944579485331057)(293,0.944579485331057)(294,0.944579485331057)(295,0.944579485331057)(296,0.944579485331057)(297,0.944579485331057)(298,0.944579485331057)(299,0.944579485331057)(300,0.944579485331057)(301,0.944579485331057)};     \legend{a,b,c,d}     \end{axis}     \end{tikzpicture}           \end{document}


title: Bibliographies from multiple .bib files

text: I would like to use multiple `.bib` files for my article, such as `file1.bib`, `file2.bib`. However, I would like my references not to be separated (such as "Primary sources", "Secondary sources", etc.) These bibliographies just need to be merged into one. One way to do this is to just copy-paste these `.bib` files into one `.bib` file, and this would solve the problem. However, I would like to keep it split into several `.bib` files, by topic (`file1.bib` contains articles on topic1, `file2.bib` contains on topic2, and so on). I tried to do               \bibliographystyle{alpha}          \bibliography{file1}     \bibliography{file2}      but this just gives me the same bibliography twice!


title: Documenting new commands

text: Texstudio displays a popup code-completion window for new commands that can give cues about what parameter does what and provides an explanation of the methods: ![enter image description here](http://i.stack.imgur.com/IsFF4.png) I'd like to do the same with my own commands that I define with `\newcommand`. Is this possible?


title: Big diagram in LaTeX with the help of PGF/TikZ

text: I managed to make this big diagram in Inkscape adding the codes in LaTeX using the plugin `textext`. See this **question** for more. ![big diagram about dual linear spaces \(algebric and topology\), Inkscape version](http://i.stack.imgur.com/HyZU4.png) I wish I knew how to draw the big diagram about dual linear spaces with the help of PGF/TikZ. **Update.** Like I said I could make this figure in Inkscape. But as you can see when I post the StackExchange she gets off with low resolution. In this figure is docoument PDF with a satisfactory resolution. But on the websites of the StackExchange resolution is not good. I believe that with a package Tikz I can solve the problem. So I posted this question here. **On the coments below:** Soon my problem is: If I use Inkscape I can control the position of the starting and end point of the arcs in each node. But to lose in resolution. If you use commands TikZ as usual I lose control over the position of the end point and initial arcs in each node. For the package TikZ endpoints and initials of each arc in a position pre-defined package TikZ. **Question:** How to solve this problem?


title: How to change the color of the text in a theorem in beamer?

text: Hello I'm writing a beamer presentation and I would like to change the colour of the text in the `theorem` block from one place and it will affect my whole presentation. Is this possible? My example:               \documentclass{beamer}           \usetheme{Madrid}           \usecolortheme[RGB={201,20,35}]{structure}       \setbeamercolor{background canvas}{bg=black}      \setbeamercolor{normal text}{fg=white}       \setbeamercolor{theorem text}{fg=black}            %\useoutertheme{shadow}      \useinnertheme{rounded}           \usepackage[utf8]{inputenc}      \usepackage{default}           \begin{document}           \begin{frame}{Primul Slide}           Bla bla bla            Bla bla bla       \begin{theorem}      This is a theorem it is very important!!      \end{theorem}           \end{frame}           \end{document}


title: How do I rescale cropped material with pdfcrop

text: I'm running pdfcrop (version 1.31) on Mac OSX. From what I read on pdfcrop page I should be able to rescale the size of the final document. The suggested approach is `pdfcrop infile.pdf letter outfile.pdf` to rescale the final version to fit to letter. When I try this I get the errror               PDFCROP 1.31, 2010/09/17 - Copyright (c) 2002-2010 by Heiko Oberdiek.     !!! Error: Too many files!      Many people are posting nicely cropped snippets of their final results. My cropped material pales.


title: How to cut a section title in the header

text: I redefine my headers as in the following MWE:               \documentclass[12pt]{article}     \usepackage{xstring}     \usepackage{fancyhdr}     \fancypagestyle{monstyle}{%     \fancyhf{} % remove everything     \renewcommand{\headrule}{\rule[1.5ex]{\headwidth}{1pt}}       \lhead{%     \leftmark%       }     }     \begin{document}     \pagestyle{monstyle}     \section{le tres tres long titre qui prend trop de place sur la ligne}     \end{document}      The section title could be very long, like in my MWE, and i want to cut it at a fixed length (say 15 letters). My attempt is to use the command `\StrLeft` from the package `xstring` : I replace the line               \leftmark%      by                   \StrLeft{\leftmark}{15}...%      But i get compilation errors which i do not understand:               Argument of \@iiparbox has an extra }.       **EDIT** I try to use Mico's solution, but i encounter now a problem with the TOC :               \documentclass[12pt]{article}     \usepackage{xstring}     \usepackage{fancyhdr}     \usepackage{blindtext}          %% Redefine the short title     \let\origsection\section %      \renewcommand{\section}[1]{%      \def\ShortSecName{\StrLeft{#1}{10}...}     \origsection[\protect\ShortSecName]{#1}%     }          \begin{document}     \tableofcontents     \section{mon titre tres long tres tres long}     \blindtext\blindtext\blindtext     \section{mon titre tres long tres tres long}     \blindtext\blindtext\blindtext     \end{document}      I get the error :               ! LaTeX Error: Something's wrong--perhaps a missing \item.      If i remove `\tableofcontents` then it compiles.


title: Using form-only patterns with variable: possible TikZ bug

text: While trying to use a variable pattern in TikZ with varying pattern color, I found that it did not seem to work. Here's a minimal working example:               \documentclass[tikz]{standalone}     \usetikzlibrary{patterns}     %     %     \tikzset{slope/.store in=\slope}     %     \pgfdeclarepatternformonly[\slope]{slant lines}     {\pgfpoint{-.1mm/\slope}{-.1mm}}{\pgfpoint{1.1mm/\slope}{1.1mm}}     {\pgfpoint{1mm/\slope}{1mm}}     {         \pgfsetlinewidth{0.4pt}         \pgfpathmoveto{\pgfpoint{-.1mm/\slope}{-.1mm}}         \pgfpathlineto{\pgfpoint{1.1mm/\slope}{1.1mm}}         \pgfusepath{stroke}     }     %     %     \newcommand{\theslope}{0.7}     %     \pgfdeclarepatternformonly{diagonal lines}     {\pgfpoint{-.1mm/\theslope}{-.1mm}}{\pgfpoint{1.1mm/\theslope}{1.1mm}}     {\pgfpoint{1mm/\theslope}{1mm}}     {         \pgfsetlinewidth{0.4pt}         \pgfpathmoveto{\pgfpoint{-.1mm/\theslope}{-.1mm}}         \pgfpathlineto{\pgfpoint{1.1mm/\theslope}{1.1mm}}         \pgfusepath{stroke}     }     %     %     \begin{document}     \begin{tikzpicture}         \draw[pattern=diagonal lines,pattern color=blue] (0,0) rectangle (5,5);         \tikzset{every path/.append style={xshift=6cm}}         \draw[pattern=slant lines,pattern color=blue,slope=0.7] (0,0) rectangle (5,5);     \end{tikzpicture}     \end{document}      The output looks like this: ![enter image description here](http://i.stack.imgur.com/fCGcO.png) If I understand the system correctly, both squares should be filled with diagonal blue lines. But for the variable-slope pattern, the `pattern color=blue` option seems to have been ignored. Am I doing something wrong, or is this an actual bug? In either case, is there a reasonable way for me to make it right?


title: all-in-one-engine for TeXShop

text: I am trying to write my 'Matura work' for school in LaTeX. Therefore I am using MacTeX and TeXShop and normally it works fine. But I am really annoyed with running all these different engines like LaTeX, BibTeX, makeindex, pdftex by hand. I don't really understand this stuff and at the moment I don't have enough time to learn. Is it possible to do all this stuff with just one click? How can I do this? ps. for my glossaries I use this:               #!/bin/sh          bfname=$(dirname "$1")/"`basename "$1" .tex`"          makeindex -s "$bfname".ist -t "$bfname".alg -o "$bfname".acr "$bfname".acn     makeindex -s "$bfname".ist -o "$bfname".gls -t "$bfname".glg "$bfname".glo


title: Add extra columns to table of contents

text: I'm preparing my lab-report. I need to customize my ToC for this. To be specific, I need to add two extra columns to the table of contents page, viz., Date and Evaluator's signature. These columns can be entry, but i need to add them to the ToC. Can somebody help me?


title: Move legend closer

text: I wish to move the legend for the left chart closer to the graph, and for the right graph, I wish to let the x-axis and y-axis appeared just like the left graph (so that there is some extra spaces to the left of 1 and to the right of 9 for x-axis, similar to y-axis), here is the graph and code ![enter image description here](http://i.stack.imgur.com/gtCdW.png)               \documentclass[9pt]{sig-alternate}     % GRAPHICS     \usepackage{pgf}     \usepackage{graphicx}     \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{arrows,automata,positioning}     \begin{document}     \pgfplotsset{     xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},     every axis/.append style={     font=\sffamily,       width=6.5cm,         height=4.9cm     }     }     \begin{figure*}[t]     \begin{minipage}{0.5\linewidth}     \centering     \scriptsize      \begin{tikzpicture}[font=\sffamily]     \begin{semilogyaxis}[title=Dataset 1,                     legend pos=outer north east,                     legend style={draw=none},                     xtick={1,2,...,9}, % new bit                     scaled ticks=false,                     log ticks with fixed point={1000 sep=},                     axis x line=bottom,                     axis y line=left,                     axis line style=-,                     minor tick style={draw=none},                     enlargelimits,                     ylabel = Solving Time (ms),                     xlabel = Service Class Size                     ]     \addplot plot coordinates{(1,5302)(2,5585)(3,5890)(4,5645)(5,5813)(6,7117)(7,8388)(8,8350)(9,8831)};     \addplot plot coordinates{(1,2)(2,2)(3,2)(4,2)(5,2)(6,3617)(7,2755)(8,2644)(9,3466)};     \addplot plot coordinates{(1,2)(2,3)(3,4)(4,2)(5,3)(6,2341)(7,3320)(8,2298)(9,3183)};     \addplot plot coordinates{(1,1)(2,2)(3,3)(4,2)(5,2)(6,4)(7,4)(8,5)(9,32)};     \addplot plot coordinates{(1,2)(2,2)(3,3)(4,2)(5,2)(6,5)(7,4)(8,4)(9,33)};     \legend{$a$,$b$,$c$,$d$,$e$}     \end{semilogyaxis}     \end{tikzpicture}     \end{minipage}% new bit     \begin{minipage}{0.5\linewidth}     \centering     \scriptsize      \begin{tikzpicture}[font=\sffamily]     \begin{axis}[title=\textbf{Dataset 2},         legend pos=outer north east,                     ymin=99.4,                     legend pos=outer north east,                     legend style={draw=none},                     xtick={1,2,...,9},                     scaled ticks=false,                     log ticks with fixed point={1000 sep=},                     axis x line=bottom,                     axis y line=left,                     axis line style=-,                     minor tick style={draw=none},             ylabel = Optimality (\%),             xlabel = Number of Constraints     ]     \addplot plot coordinates{(1,100)(2,100)(3,100)(4,100)(5,100)(6,99.82)(7,99.84)(8,99.59)(9,99.65)};     \addplot plot coordinates{(1,100)(2,100)(3,100)(4,100)(5,100)(6,99.44)(7,100)(8,99.78)(9,99.73)};     \addplot plot coordinates{(1,100)(2,100)(3,100)(4,100)(5,100)(6,99.82)(7,99.74)(8,99.74)(9,99.86)};     \addplot plot coordinates{(1,100)(2,100)(3,100)(4,100)(5,100)(6,99.82)(7,99.74)(8,99.74)(9,99.86)};     \legend{$a$,$b$,$c$,$d$}     \end{axis}     \end{tikzpicture}     \end{minipage}%     \end{figure*}      \end{document}


title: Changing Hebrew fonts with cjhebrew?

text: I'm using the cjhebrew package. How can I change the Hebrew font used while still keeping a 12pt Times English font? According to http://sites.huji.ac.il/tex/newlatex_usage.txt, there are many Hebrew fonts, as it states:   * Jerusalem (used as default font)   * Dead Sea (used as bold font)   * Tel-Aviv (used as sans-serif or typewriter font)   * Old Jaffa (used as italic or slanted font and for emphasize)   * Hebrew classic normal and slanted (command \textclas)   * Shalom Old Style (command \textshold)   * Shalom Script (command \textshscr)   * Shalom Stick (command \textshstk)   * Carmel normal and slanted (command \textcrml)   * Frank Ruehl normal, bold and slanted (command \textfr)   * Redis normal, bold and slanted (command \textredis) Is there a way to change it? Also, is there another/better package I might be using?


title: Footnote in align enviroment

text: It appears that one is _not_ supposed to use `\footnote` in math mode as per this appropriately named question: Footnote in math mode. However, it appears that I can get it to work without having to resort to `\footnotemark` and `\footnotetext`, as long as I use a `minipage`:               \begin{minipage}{0.5\linewidth}     \begin{align*}         E &= mc^3 &&\text{Einstein}\footnote{Better check this.}     \end{align*}     \end{minipage}      which yields: ![enter image description here](http://i.stack.imgur.com/vRQwg.png) Ok, so that seems to be working. But wait.. The text of the `\footnote` duplicated!!! Hmmm, must be the measuring stage that align goes thru. Ok, then that should be easy to fix: all we need to do is to check `\ifmeasuring@`:               \makeatletter     \newcommand{\AlignFootnote}[1]{%         \ifmeasuring@         \else             \footnote{#1}%         \fi     }     \makeatother      Now using `\AlignFootnote{}` instead of `\footnote{}` we get the desired results: ![enter image description here](http://i.stack.imgur.com/KAGty.png) Ok, but in this first use case (Einstein) I just happened to use the `\footnote` inside the `\text{}`. Trying to use `\AlignFootnote{}` outside of the `\text{}` (Newton) really screws this up for some reason: ![enter image description here](http://i.stack.imgur.com/aY700.png) So in the Newton use case, it appears as if the content outside of the `\text{}` goes thru 4 non-measuring passes. ## Attempted Fix: Well the obvious thing to try was to use `\text{\footnote{#1}}`, but that not only has no effect on the second use case, it also messes up the first use case: both footnotes show up 4 times. ## Questions:   * Main question: Is there a way to detect the repeated passes outside of `\text{}` so that I don't have `\footnotes` duplicated without resorting to `\footnotemark`/`\footnotetext`?   * Why is the `minipage` required? Without it the `\footnotes` don't show up at all. Is there some flushing type of macro required that would make them show up? ## Code:               \documentclass{article}     \usepackage{amsmath}          \makeatletter     \newcommand{\AlignFootnote}[1]{%         \ifmeasuring@         \else             \footnote{#1}%         \fi     }     \makeatother          \begin{document}     \begin{minipage}{0.5\linewidth}     \begin{align*}         E &= mc^3 &&\text{Einstein}\AlignFootnote{Better check this.} \\         F &= mb   &&\text{Newton\AlignFootnote{This also seems wrong for some reason.}}     \end{align*}     \end{minipage}     \end{document}


title: Make glossaries contain exactly all referenced and cross-referenced keys

text: The documentation of the `glossaries` package states about the `see` key > Note that in this case, the entry with the see key will automatically be > added to the glossary, but the cross-referenced entry won’t. So when there are two entries               \newglossaryentry{one}{name=one, see=two}     \newglossaryentry{two}{name=two}      `one` is always included in the glossary, also when it is never referenced, because it has a `see` key specified. On the other hand, even when `one` is referenced with e.g. `\gls{one}`, then `two` does not show up in the glossary. Is there a possibility to automatically include an entry and all its cross- references specified with the `see` key, if and only if it is actually referenced?


title: How to fix figure caption while using lmodern

text: To remove the warnings, > Font shape `OT1/cmss/m/n' in size <4> not available(Font) size <5> > substituted Size substitutions with differences(Font) up to 1.0pt have > occurred. I used the package `lmodern`, as stated here. However, it does create some problems in figure and sub-figure captions. MWE:               \documentclass{article}          \usepackage{lmodern, subfigure}          \begin{document}     \begin{figure}          \subfigure[$A$-−$B$-−$C$-−$D$-−$A$-−$C$]{     }     \caption{$A$-−$B$-−$C$-−$D$-−$A$-−$C$}     \end{figure}     \end{document}      Screenshot: ![](http://i.stack.imgur.com/MgJgr.png) How to fix that?


title: Maximum number of counters am I allowed to make/have?

text: I'm currently working on generating the pentest-reports of the company I work for with tex. I came across the _totcounter_ package which I use for the overview table of the findings. there i'm adding three counters per host in a table:               ...     \newtotcounter{1.2.3.4-high}     \newtotcounter{1.2.3.4-middle}     \newtotcounter{1.2.3.4-low}     ...       This tex-table gets generated by a ruby script which reads a nmap-report. so I get a lot counters... the problem I now have is that I get an error:               No room for a new \counter ...      Is there a maximum number of counters in TeX?


title: Line numbers are outside the box in algorithm2e

text: Here is my code:               \documentclass[11pt]{llncs}     \usepackage[utf8]{inputenc}     \usepackage{parskip}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{dsfont}     \usepackage{float}     \usepackage{multicol}     \usepackage{fixltx2e}     \usepackage{multicol}     \newcommand\blfootnote[1]{%       \begingroup       \renewcommand\thefootnote{}\footnote{#1}%       \addtocounter{footnote}{-1}%       \endgroup       }          \usepackage[T1]{fontenc}     \usepackage{comment}      \usepackage{amsmath}                                    %      \setcounter{MaxMatrixCols}{20}     \usepackage[margin=1in]{geometry}     \usepackage[noend, boxruled, linesnumbered]{algorithm2e}     \usepackage{xcolor}     \usepackage{setspace}     \usepackage{hyperref}     \definecolor{bl}{rgb}{0.0,0.2,0.6}      \definecolor{dark-red}{rgb}{0.4,0.15,0.15}     \definecolor{dark-blue}{rgb}{0.15,0.15,0.4}     \definecolor{medium-blue}{rgb}{0,0,0.5}     \usepackage{sectsty}     \hypersetup{         colorlinks, linkcolor={dark-red},         citecolor={dark-blue}, urlcolor={medium-blue}     }     \usepackage{graphicx}     \usepackage[compact]{titlesec}      \newtheorem{observation}{\textsc{Observation}}     %%% Start of the document     \begin{document}     \begin{algorithm}[H]     \label{alg:seed}         \SetAlgoLined          \SetKwInOut{Input}{input}         \Input{\textsc{Graph} $G$}         line number outside the box\;         another line\;         a third line\;         what is going on?\;         \caption{\textsc{Caption}}     \end{algorithm}     \end{document}      And here is the output: ![enter image description here](http://i.stack.imgur.com/A3kDn.png) Which command sends line numbers outside of the box?


title: Different styles of bullets of enumerate

text: I have an `enumerate` inside an `enumerate`:               \documentclass{beamer}     \usetheme{Boadilla}     \begin{document}     \begin{enumerate}        \item Item1        \item Item2        \begin{enumerate}           \item Item2.        \end{enumerate}     \end{enumerate}     \end{document}      The problem is the bullets of the inner enumerate and the outer enumerate are in same style (a ball in green), does anyone know if there are other styles of bullets available?


title: How to write over a table?

text: I would like to make a _hanzi grid_ for practicing Chinese characters, like this one: http://www.hanzigrids.com/version/1328584298/example- pdfs/hanzigrids-yingbikaishu.pdf I am able to make the table with the _arydshln_ package, like this:               \begin{tabular}{|c:c|c:c|c:c|c:c|}       \hline       & & & & & & & \\       \hdashline       & & & & & & & \\       \hline       & & & & & & & \\       \hdashline       & & & & & & & \\       \hline     \end{tabular}      but how can I write the characters over the table?


title: Harvmac, Amstex

text: I am writing a file with Plain TeX using the `harvmac` macro. I have always used LaTeX until now. Two related questions about `harvmac` Vs. mathematical fonts:   1. I tried adding `\input amstex` to get the "equivalent" of the `amsmath` package for LaTeX. When I did so, I got errors in compiling the calligraphic font. Expressions like `${\cal M}$` were correctly compiled before, and give me error when `\input amstex` is added. How can I have both?   2. How do I get the `\mathbb` and all the other options in the `amsfonts` package?  Thanks


title: Reduce vertical stretching by encouraging page breaks within paragraphs

text: It's pretty standard for latex to add a little whitespace between captions, figures etc to reduce the chance of page breaks mid-paragraph. In some cases I feel latex is a little too liberal with its stretching. This may contribute to the length of my document too. I'd like some control over the threshold of the decision to page break mid- paragraph or stretch, similarly to the way `\emergencystretch` can be adjusted for whitespace within a line. Is this possible? [ _EDIT_ ]   Perhaps penalties is what I'm after, but I haven't got anything working so far.


title: draw and fill options ignored in column style

text: The `draw` and `fill` options are ignored when supplied to `column 1/.style` in a tikz matrix, but `text` color and other options aren't:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{matrix}     \begin{document}     \begin{tikzpicture}       \matrix[matrix of nodes, column 1/.style={draw=red, fill=blue, text=green}] {         A & B \\         C & D \\       };     \end{tikzpicture}     \end{document}      ![Matrix containing A B C D with A and C green, but no border and no fill](http://i.stack.imgur.com/k7bcu.png) Why is that happening and how can I fix it?


title: Double-struck unicode chars in \texorpdfstring

text: Consider the following example (PDFLaTeX, TeXLive 2011):               \documentclass{article}     \usepackage{xspace,amssymb,mathtools,fixltx2e}     % This isn't *stricly* necessary, of course...     \ifdefined\TextOrMath       \def\ensuremath#1{\TextOrMath{\(\relax #1\)}{#1}}     \fi     \usepackage[utf8]{inputenc}     \usepackage[unicode]{hyperref}     \def\defTeXorMathorUnicodePDFcmd#1#2#3{%       \def#1{\texorpdfstring{\ensuremath{#2}}{#3}\xspace}}     % Common double-struck characters such as ℂ, ℍ, ℕ, ℙ, ℚ, ℝ and ℤ are     % set up to work by inputenc.sty.  They are in the range u+2102-2149     % along with some other characters that aren't in amsmath's blackboard     % bold font such as ⅆ and ⅈ.     \defTeXorMathorUnicodePDFcmd\CC{\mathbb C}{ℂ}     %  is an example of a character that inputenc.sty doesn't make work.      % It - along with the characters , , , &c - are in the completely      % different range u+1D538-1D7E1.     \defTeXorMathorUnicodePDFcmd\FF{\mathbb F}{}     \begin{document} \section{\CC and \FF, [\ldots]} \end{document}      The purpose of `\CC` is to get ℂ in both the text and the PDF TOC when used in for example a section header. What's needed to get `\FF` to do the same for (and similarly for the other "uncommon" double-struck characters)? PS: I copied the characters from here: http://graphemica.com/search?q=double+struck


title: Newpage between tikzpictures

text: I'm trying to draw in tikz. The aim is to create a document with a first page with the title and other infos. Each of the other page is a wiremap a of type of cable. I use python to generate the tex code. And I need to start a new page between each wiremap (between each `tikzpicture`). So I tried to use a simple newpage, but MikTeX says to me this error:               ! Missing \endgroup inserted.     <inserted text>                 \endgroup     l.12 \newpage          ?      My TeX file is:               \documentclass[a4paper,class=article,border=0pt]{standalone}     \usepackage{tikz}     %     \begin{document}     %     \begin{tikzpicture}     \clip (0,0) rectangle (21,29.7);     \draw[red] (0,0) -- (21,29.7);     \draw[red] (1,0) -- (0,1);     \draw[blue] (0,0) rectangle (21,29.7);     \draw[green] (1,1) rectangle (20,28.7);     \end{tikzpicture}     \newpage     \begin{tikzpicture}     \clip (0,0) rectangle (21,29.7);     \draw[blue] (1,1) rectangle (20,28.7);     \end{tikzpicture}     %     \end{document}


title: colored scratched out entries in a Table

text: I have a weird problem: If I put a scratched out entry (using package ulem) in a table everything ist fine. But if I color that entry it slips down a little bit. Does anyone know why? Here an example:               \documentclass[11pt,twoside,a4paper,final,titlepage,openany]{amsbook}     \usepackage[ngerman]{babel}     \usepackage{ulem}     \usepackage{color}     \begin{document}          \begin{tabular}{p{4cm}p{4cm}p{4cm}}      bla& bla  &bla\\\hline           bla &{\color{red}{ \sout{bla}}} & bla\\          \end{tabular}          \end{document}


title: Adding an option to the PDFLaTeX call from AUCTeX

text: In my `.emacs` I have               '(TeX-PDF-mode t)       set. So I'm using PDFLaTeX. I'm not sure why this is not the default these days. I had also set               '(LaTeX-command "latex -shell-escape")      In hindsight this was a bad idea, but I didn't realise it till I was trying to get SyncTeX to work, but it wouldn't. I belatedly realized that because I had set LaTeX-command manually, I was overwriting the               --synctex=1      option that would normally have been there. Which brings to my question.   1. Is `LaTeX-command` the right command to modify to add the `-shell-escape` option, and if so   2. What is the right way to add an option to `LaTeX-command`? @David Carlisle suggested               (setq LaTeX-command (concat LaTeX-command " -shell-escape"))      which seems to be in the right ballpark, but this gives the error:                Symbol's value as variable is void: LaTeX-command      NOTE: Evaluating `LaTeX-command` just gives "latex", so this may not be the right thing to append to.


title: Omit/delete second bar under the navigation bar in szeged theme?

text: The code below gives nice slides with a navigation bar on top that leads to the different sections (I have no subsections) in the presentation. However, below the navigation bar there is a second bar (grey) without any content that I would like to get rid off because it just takes up space. Does anyone know how to do that? Removing that bar would result in the "perfect" presentation for me.               \documentclass{beamer}          \usepackage[T1]{fontenc}     \usepackage{lmodern}     %\usepackage[latin1]{inputenc}      \usepackage[ansinew]{inputenc}      \usepackage[ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}     \usetheme{Szeged}     \usecolortheme{seagull}     \usepackage{graphicx}     \usepackage{color}     \usepackage{multirow}          \title[Short title]{\textsc{{Long title 1}}}        \author{Aut Hor}      \institute[Short Ins]{Ins}     \date{\today}           %***********************************     \begin{document}     \frame{\titlepage}      \frame{\frametitle{Outline}{\tableofcontents}}               \section{FIRST SECTION}     \frame{\frametitle{FIRST FRAME}      \begin{itemize}         \item item 1          \item item 2     \end{itemize}     }          \section{SECOND SECTION}     \frame{\frametitle{SECOND FRAME}      \begin{itemize}         \item item 4         \item item 5     \end{itemize}     }          \end{document}


title: Unwanted space between . ("dot") and Y

text: I see that LaTeX does not eliminate the space before Y:               \documentclass{article}     \usepackage{tgpagella}     \usepackage[T1]{fontenc}     \begin{document}     e-mail: Kennedi.Yaccarino@somewhere.com     \end{document}      After searching I found a possible way to fix this is to add the following code just before Y:               .\kern-.15em      But I was surprised that LaTeX does not handle this by default. Am I missing something?


title: How to place ltablex at the top of a page?

text: Can someone let me know the trick to place `ltablex` table at the top of a page? For instance, for a table env. it is [ht], but the same doesn't work for me using `ltablex`. Thanks.               \documentclass{article}     \usepackage{ltablex}     \usepackage{threeparttable}     \usepackage{booktabs}          \title{Document}     \begin{document}     \maketitle          \begin{tabularx}{\textwidth}{Xc}     \toprule\toprule     Some random text & 1,75,650\\\midrule     \multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule     Number of observations ... & 1,75,650\\     Delete: ... & (78,420)\\     Delete: ... & (7,104)\\     Final sample & 90,126\\     Delete: & (2,143)\\     Delete: & (8,345)\\     Final sample & 79,638\\\midrule     \multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\\midrule     Number of observations & 79,638\\     Delete: & (39,540)\\     Delete: & (7,979) \\     Final sample & 32,119 \\\midrule     \multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\\midrule     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Final sample & 42,884\\\midrule     \multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\\midrule     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Number of observations  & 1,75,650\\     Delete: & (78,420)\\     Delete: & (47,136)\\     Delete: & (7,178)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Delete: & (32)\\     Final sample & 42,884\\\midrule\bottomrule     \end{tabularx}          \end{document}


title: using texlive:latex/pdflatex/xelatex and shebang (jobname)

text: I'm wondering, why my minimal example (in file `shebang.tex`)               %& -job-name=test     \listfiles     \documentclass{article}     \begin{document}     Hidiho     \end{document}      will always (no matter if using `latex`, `pdflatex` oder `xelatex`) compile to `shebang.dvi/pdf` and not to `test.dvi/pdf`. Are shebang-lines deactivated? Edit: I just found out, that it is something with encoding: Using MikTex in Windows on the file encoded in `ISO-8859-15` it is working - but not with encoding `UTF-8` - which I like to use.   Under Debian Linux with texlive, no matter which encoding it is not working.   Maybe one needs another symbol after the percent-symbol?   The questions seems to be somehow related to %& magic line has no effect: But there is also a difference: Running the command `xelatex -parse-first-line shebang` will also produce `shebang.pdf`. In the log file, there occur those lines                %&-line parsing enabled.     **shebang     (./shebang.tex     \openout1 = `shebang.aux'.      showing the flag being recognized - but the job-name not working.


title: How can I center a too wide table?

text: I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the `center` environment but this doesn't seem to help.


title: same font and bold for thesis in chapter, section and so on

text: I would like to create the format below for my thesis using `\documentclass{thesis}` > Introduction --> no number for chapter > >   1. Section > > > 1.1. Subsection all of them using same font with text and bold. Please help me as I am beginner for LaTeX and I dont have much time to find the answer.


title: LaTeX math mode error

text: I have to following code:               \begin{align*}     r^2  = \left[\frac  {23604,7 - \frac{1}{22} \cdot 253 \cdot 1942.5}  {\sqrt{[3795 - \frac{1}{22} \cdot 253^2]  [173348.4 - \frac{1}{22} \cdot 1942.5^2]  }} \right]^2 \\ \\          r^2  = \left[\frac{1265.95}{\sqrt{885.5 \cdot 1834.51}} \right]^2 \\ \\          r^2  = \left[\frac{1265.95}{\sqrt{1624458.2}} \right]^2 \\ \\          r^2  = \left[\frac{1265.95}{1274.54} \right]^2 \\ \\          r^2  = [0.99356]^2 = 0.9866     \end{align*}      and got the error: > ! Paragraph ended before \align* was complete. > > ! Missing $ inserted. and a few more...can somebody spot the mistake? :<


title: How to align nested cases?

text: Please consider the code bellow:               \begin{align*}         function =          \begin{cases}              case1 &\mbox{if } n = 0 \\             \begin{cases}                  case2 &\mbox{if } n = 1 \\                 \begin{cases}                      case3 &\mbox{if } n = 2 \\                     case4 &\mbox{if } n = 3                  \end{cases}             \end{cases}         \end{cases}     \end{align*}      The result of this code is something like this: ![](http://i.stack.imgur.com/b8UGL.png) My question is, how to align the conditions of these nested cases (or arrays if you prefer them) without cheating (i.e. without using `/quad` or `/hspace`) to achieve something like this: ![](http://i.stack.imgur.com/rH3gQ.png)


title: Best way to make circuit diagrams for LaTeX?

text: I'm using PCTex (WinXP) and looking for the best way to make circuit diagrams for LaTeX. Something that will allow me to include many arrows, comments and equations around the schematic. The objective is to give step by step instructions on how to solve a problem (like a textbook). I don't mind a learning curve as long as it will look professional at the end. Circuit_macros looked appealing but I was not sure how to install it for PCTex.


title: Three different captions: longtable

text: My problem is that I have tables that are three pages long. Thus, I would like to have three different captions when using the `longtable package`. The similar question How to use a longtable with only one entry in the list of tables does not solve my problem. As far as I know this is how we could use `longtable` regarded this matter:               \caption{Example of longtable}     \endfirsthead     \caption[]{Continued}     \endhead      However, if the table occupies three pages, so that's how the captions are: > Table 2.1 - Example of longtable (page 1) > > Table 2.1 - Continued (page 2) > > Table 2.1 - Continued (page 3) In other words, I can not get different captions for the second and third pages. That's what I want and that's the problem.


title: Referencing externalized pgfplots with subfig and cleverref

text: I use `pgfplots` to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use `\tikzexternalize`. Moreover, I also use the `subfig` package to group several pictures into a single float and the `cleverref` package. So far, everything works perfect. However, when I add references to my externalized images, strange bugs occur. In short, **some plots which are based on data from files do not produce correct references. The exact same plots with fixed data do produce correct references**. Apart from that, both methods results in correct images. My only problem are the missing references. Due to the complexity of the project, it is hard to deliver a complete working sample code which produces such a bug. I hope the following explanations are enough to give you a rough idea of what might go wrong. For all images, I use a shortcut command. Let us assume we have               \newcommand{\myfigureA}[1]{\tikzsetnextfilename{#1}\begin{tikzpicture}     \begin{axis}[width=4cm,height=4cm]     \addplot3[surf] file{#1.data};     \end{axis}\end{tikzpicture}\label{fig:#1}}      and               \newcommand{\myfigureB}[1]{\tikzsetnextfilename{#1}\begin{tikzpicture}     \begin{axis}[width=4cm,height=4cm]     \addplot3[surf] coordinates {     (0,0,0) (1,0,0) (2,0,0) (3,0,0)     (0,1,0) (1,1,0.6) (2,1,0.7) (3,1,0.5)     (0,2,0) (1,2,0.7) (2,2,0.8) (3,2,0.5)};     \end{axis}\end{tikzpicture}\label{fig:#1}}      When I use `\myfigureB{name}` to produce a certain image, all references `\cref{fig:name}` are working. On the other hand, when I use `\myfigureA{name}`, all references `\cref{fig:name}` are broken and I get " **??** " signs instead. However, both `\myfigureA{name}` and `\myfigureB{name}` result in _the exact same image_ in the final PDF document (assuming the coordinates in the file correspond to the coordinates given here). Strangely enough, references to some images (always the same images) do in fact work. I have no idea what makes these images different from the others. A usage of these commands to produce a series of four images might look like this:               \begin{figure}[h]     \centering     \subfloat[][]{\myfigureA{name1}}     \subfloat[][]{\myfigureA{name2}} \\     \subfloat[][]{\myfigureA{name3}}     \subfloat[][]{\myfigureA{name4}}     \caption{caption text}     \end{figure}      I use the latest versions of all mentioned packages. Compilation is performed by the usual four commands, namely `pdflatex -interaction=nonstopmode -shell- escape mylatexfile`, `bibtex mybibliography`, `pdflatex -interaction=nonstopmode -shell-escape mylatexfile` and `pdflatex -interaction=nonstopmode -shell-escape mylatexfile`. In the `.log` file of the main document I only get the "Labels may have changed..." message for both `\myfigureA{name}` and `\myfigureB{name}`, but even compiling a few dozen times does not change this. I think this might be a result of the externalization process. The individual log files of the externalized images show a lot of missing references for both `\myfigureA{name}` and `\myfigureB{name}`, although in the former case they do work in the final PDF document. In the latter case, they do not, as already mentioned. The `cleverref` package does not seem to have anything to do with this bug. Unfortunately, I have no more ideas where else to look for my bug.


title: Cross reference line number within program listing in lyx

text: I'm trying to cross reference program code line numbers within a program listing using lyx. From what I can tell, both labels and ERT are disabled within the program listing, but I'm not sure why. I know in regular latex, you can add labels within a program listing, but it appears disabled in lyx. See: ftp://ftp.tex.ac.uk/tex- archive/macros/latex/contrib/listings/listings.pdf The internet seems strangely unhelpful on this issue, unless I'm missing something obvious. Any ideas?


title: Texmaker, use a "build" subdirectory for output files, and bibliography

text: I think this is more like a bug for Texmaker. Here is description: I'm using Texmaker on windows, and I wanted to add bibliography using:               \bibliographystyle{plain}   % (uses file "plain.bst")     \bibliography{./references}      I noticed that when I use the option ``Use a "build" subdirectory for output files'' (from Texmaker configurations in the Commands tab) the bibliography does not appear on the output file. Yet when I disable this option, every thing works fine. Any ideas how to keep using the "build" subdirectory option? I want to keep using it cause it helps keeping things organised.


title: Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?

text: I am discovering LuaLaTeX... I want to produce pdf files from my `tex` sources as small as possible. If I compile the following code with `LuaLaTeX`, the size of the generated `pdf` is 9 kB.               \documentclass{article}     \usepackage{titlesec}     \usepackage{titling}     \usepackage{fontspec}     % Specify different font for section headings     \newfontfamily\headingfont[]{Gill Sans}     \titleformat*{\section}{\LARGE\headingfont}     \titleformat*{\subsection}{\Large\headingfont}     \titleformat*{\subsubsection}{\large\headingfont}     \renewcommand{\maketitlehooka}{\headingfont}     \author{An author}     \title{The title of the article}     \date{\today}     \begin{document}     \maketitle     \section{A section}     \subsection{A subsection}     \subsubsection{A subsubsection}     \end{document}      If I compile the same code with `LaTeX` but with a difference of font, the resulted files is 49 kB large. I guess the difference doesn't come from `LaTeX` ou `LuaLaTeX` but from the fonts. Something like : "my `pdf` system knows better about the `Gill Sans` font than the default `LaTeX` fonts".               \documentclass{article}     \usepackage{titlesec}     \usepackage{titling}     %\usepackage{fontspec}     %% Specify different font for section headings     %\newfontfamily\headingfont[]{Gill Sans}     %\titleformat*{\section}{\LARGE\headingfont}     %\titleformat*{\subsection}{\Large\headingfont}     %\titleformat*{\subsubsection}{\large\headingfont}     %\renewcommand{\maketitlehooka}{\headingfont}     \author{An author}     \title{The title of the article}     \date{\today}     \begin{document}     \maketitle     \section{A section}     \subsection{A subsection}     \subsubsection{A subsubsection}     \end{document}      Can someone confirm this? Is there a rule to learn from this if one wants to produce very light files? * * * PS : If I use the same font, I get the same size ! PPS : Strangely, if I apply `ghostscript` on the `pdf` file generated by `LuaLaTex`, the size gets bigger (from 9 kB to 12 kB !). The file generated by `LaTex` : from 49 kB to 13 kB. PPPS : In my naive way of understanding things, using a custom font, such as `Gill Sans` would normally produce a bigger file than if using the standard font.


title: UFT8 inside the formula?

text: Is there a way I can use UFT8 (say greek chars) inside the formula? For example I want latex to render:               $α$      as               $\alpha$      (actually the question comes from mathjax -- there You can do it, but now I need to use latex -- and I get issues with utf from pdftex).


title: Table Formatting - Width

text: Okay so I am having some trouble with tables in Latex. I tried to find a solution within the already asked questions out there, but I haven't been able to either make sense or get these to work. Here is my table code:                   \begin{table}[ht]         \caption{Model Input Information: Materials}         \centering         \begin{tabular}{c c c}         \toprule         Available Materials & Material Input Parameters & Description \\         \midrule             Fused Silica (delta eV = 9) & alpha & Avalanche Coefficient [\si{\cm\squared\per\joule}] \\             Fused Silica (delta eV = 7.5) & delta eV & Material Band Gap [\si{\electronvolt}] \\             \ce{GaAs} & me & Effective Electron Mass [\si{\kilogram}] \\             \ce{ZnSe} & n0 & Linear Refractive Index \\             \ce{Ge} & n2 & Non-Linear Refractive Index \\             \ce{HfO_2} & T & Effective Decay Constant [fs] \\             \ce{TiO_2} & & \\             \ce{Ta_2O_5} & & \\             \ce{Al_2O_3} & & \\             \ce{SiO_2} & & \\         \bottomrule         \end{tabular}         \label{table:MaterialInputs}         \end{table}      The table looks good but it extends way too far right, almost to the edge of the page. I need a way to fix this. I've tried using p within the tabular command to set the widths manually, but I don't like what it does when wrapping the text. It creates hyphens on words instead of bringing them down a line. Any suggestions would be greatly appreciated!


title: Circle with a cross inside feynmp

text: The below code produces essentially what I want but there must be a more elegant way and more automatized way. I want a circle with a cross inside it at a vertex:               \fmfv{d.sh=circle,d.f=empty,d.si=.1w,l=$\times$,label.dist=0}{v3}% v3 is the name of the vertex      But notice that if the circle becomes big, the cross will remain small. I want a circle with a cross inside it that has the same diameter as the circle no matter how big the circle is. Is there a simple way to achieve this? See also http://physics.stackexchange.com/questions/101761/qed-vertex-factor- rule or the figure below. ![enter image description here](http://i.stack.imgur.com/U3cWY.jpg)


title: Redefine block template for Beamer theorem-like environment

text: I would like to redefine the block templates for Beamer's theorem-like environments. For example, the `example` environment creates an `exampleblock`. I would like to make the `definition` environment do the same thing. It's possible to do this locally using the `exampleblock` environment:               \begin{exampleblock}{Definition}     (Definition here)     \end{exampleblock}      However, I would like a global solution. I should add that much the same question was asked on Stackoverflow, but no one seems to have figured out a solution.


title: how can I make an fbox like command with certain color, shape and width of border?

text: I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only:   1. There will be some (predefined) padding below, above, left and right of the border.   2. The border will have a certain (predefined) width, which is thicker than the default.   3. The color of the border will be the same color as the section headers (is there a variable that denotes section header text color?)   4. The shape of the border will be oval on the corners, and not pointy. How would I go on in defining such a macro?


title: Creating flashcards with LaTeX

text: As the current semester is almost over and my lecturenotes-typesetting project draws to a close, I start learning the definitions with flashcards. I've created the flashcards automatically with a Python script that extracts `\begin{definition}..\end{definition}` and puts them into a new `TeX`-document. In most cases, it works fine: ![enter image description here](http://i.stack.imgur.com/86ypM.jpg) The TeX-file is in `A7` so that every page contains exactly one definition. To make sure that this works, I surround the definitions like this:               \vspace*{\fill}     \begin{definition}..\end{definition}     \vspace*{\fill}     \clearpage      I've inserted the `\vspace*{\fill}` to center the definitions on the `A7` page. So I can print 8 definitions on `A4` pages and cut them (see image below). This works fine for about 60 flashcards / definitions, but about 10 flashcards are either not vertically centered or have 2 definitions on one page. Why are there pages with two definitions, when after every definition is a `\clearpage`? Is there a better way to vertically center definition environments than by surrounding them with `\vspace*{\fill}`? (I don't think you need to look at the Python script or the TeX-template, but if you want to, you can.)


title: Using bold for just one word inside listing?

text: I have a similar structure like this:               \begin{lstlisting}[language=bash]     Family     |-father     |-mother     |-elderson     |-younger son     |-younger daughter     \end{lstlisting}      I need to make "mother" and "younger daughter" words in bold. How can I do it? i followed this Using bold/italic text inside listings?, but could not do it.


title: Applying textbf and ttfamily simultaneously

text: I'm trying to apply `textbf` and `ttfamily` simultanously, but the font is only getting monospaced and not bold. Example:               \documentclass{book}          \begin{document}     \chapter{Testing}     \textbf{Bold}\\     \ttfamily{Monospaced}\\     \textbf{\ttfamily{Bold and Monospaced}}\\     \end{document}      Result: ![](http://i.stack.imgur.com/EhVX9.png) How can I make the output become monospaced and bold at the same time?


title: Nested fonts not working

text: I'm trying to get some words in bold and typewriter styles together but only typewriter is been applied. I saw in other question one not should use \bf while nesting, so I tried:               \texttt{\textbf{Mywords}}     \textbf{\texttt{Other words}}      but both of them appear only with typewriter style. I'm in a document class `scrreprt.`


title: \newpage, \pagebreak, and \clearpage within a set of flashcards

text: I am using the `flashcards` document class, with the `avery5371` option that produces ten double-sided 2"x3.5" cards per page of `letterpaper` geometry. When I make changes to some cards, rather than reprint the whole set of cards and discard those without changes, I would like to move the new cards to the end of the list and print them alone. It would be helpful, therefore, to be able to start a new page of output before the changed cards begin. But I find that the three commands I know of for starting a new page, `\newpage`, `\pagebreak`, and `\clearpage`, all fail to produce the desired result. The grid of ten cards per sheet continues past these commands unbroken. Any suggestions on how to get a new page? The last-ditch solution is to start a new file with the changed cards.


title: Scaling a pst-3dplot to fit a Beamer frame

text: I'm new to pstricks. I was looking for an automatic way of resizing a plot. I'm trying to fit a 3d plot, generated using pst-3dplot, into a beamer frame. However, I'm not able to make it look good automatically. If I set some frame coordinates to the pspicture then just a part of the plot appears. And if I set no coordintaes, then there is no plot. I also try using `\psset(unit=1mm)` but it compresses the plot and doesn't look good. Is there a way to figure it out without having to recompile hundreads of times? Is there a way to make it resize automatically to the frame size? This is an example of what I'm doing:               \documentclass{beamer}          % For the figures     \usepackage[pdf]{pstricks}     \usepackage{auto-pst-pdf}     \usepackage{pst-node, pst-plot, pst-circ, pst-3dplot}     \usepackage{moredefs}              \begin{document}          \begin{frame}{3D}     \begin{center}          \begin{pspicture}%(-5,3)(5,-3)%<-uncomment this and just a part appears     \pstThreeDCoor[linecolor=black, IIIDticks,IIIDlabels,xMin=-20,xMax=20,yMin=-20, yMax=20,zMin=0,zMax=35]     \fileplotThreeD[linecolor=blue,plotstyle=line]{data.txt}     \end{pspicture}     \end{center}     \end{frame}              \end{document}      The data.txt file is here


title: How can I show a macro as text?

text: Say I want to make a file which has as text `\documentclass{article}` I found out I can do it like this:               \documentclass{article}     \begin{document}       \begin{verbatim}         \documentclass{article}       \end{verbatim}     \end{document}      That's fine. But what if I want to have as text `\begin{verbatim}` and `\end{verbatim}`?


title: Installing concmath on a mac

text: I've tried using `tlmgr` to install the `concmath` package, but I keep getting the following error:               ! Font T1/ccr/m/n/10=eorm10 at 10.0pt not loadable: Metric (TFM) file not found     .<to be read again>     relax      what should I do to install it correctly? I've also tried installing `beton`, `concrete` and `ccfonts` using `tlmgr`, all to no avail. Installing the `concrete` package gave me bitmap (pixely) fonts though (only when I omit `\usepackage[T1]{fontenc}`). I'm using this document:               \documentclass[a4paper]{article}          \usepackage[T1]{fontenc}     \usepackage{concmath}          \begin{document}     test          \end{document}      NOTE: I also use `microtype`, which makes the need for the non-pixel version even more pressing. Microtype can't do expansion on these things..


title: LaTeX: How to get the following output in table?

text: I am writing a research document in which I need to merge two columns, I did the code for it but not getting desired output, Can anyone please tell me ? what's wrong in my code.... ![enter image description here](http://i.stack.imgur.com/Y5LYb.png) here is my latex code               \begin{table}[h]       \begin{tabular}{|l|l|l|l|l|l|l|l|l|}       \hline       Image Name & 1 & 2 & 4 & 5 & \multicolumn{2}{c}{8} & \multicolumn{2}{c}{9}\\       \hline       &  &   &   &   &  & M  & D  & X  & Y \\       \hline       ..............       ..............       ..............       ..............       ..............            \end{tabular}     \end{table}


title: different spacing aroung equal sign for display/text mode

text: as I wanted to increase the space surrounding the = sign in my equations, I changed the thickmuskip length in the preamble               \setlength{\thickmuskip}{14mu}      It works fine, and I like the result in display-style equations. The problem is that it also affects equations written in text-style (ie those with $$) and there it does not look good. How can I get a different spacing around = in display and text mode? Thanks


title: metric file not found for script font

text: I'm trying to get a handwritten-looking cursive font working in LaTeX. I found a list in the TUG font catalogue, and thought Vereinfachten Ausgangsschrift looked right. However, I can't get even the tiniest document to work:               \documentclass{article}     \usepackage{va}     \begin{document}     Some text. {\va Something in cursive}.     \end{document}      MikTex auto-installed the `va` package for me. But when compiling this file, I get the following errors:               (C:\Users\Nate Glenn\AppData\Roaming\MiKTeX\2.9\fonts\source\lh\base\lkligtbl.mf)     >> 0.14     >> "input ec"     ! I can't find file `ec'.     <scantokens> input ec          <to be read again>                        ;     use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss);                                                       pt#:=true_pt#;font_identif...     l.304 use_driver(fonteq)                             ;     Please type another input file name     ! Emergency stop.     <scantokens> input ec          <to be read again>                        ;     use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss);                                                       pt#:=true_pt#;font_identif...     l.304 use_driver(fonteq)                             ;     Transcript written on la14.log.     miktex-maketfm.exe: Windows API error 2: The system cannot find the file specified.     miktex-maketfm.exe: Data: la14.tfm          ! Font T1/la/m/n/10=la14 at 7.14279pt not loadable: Metric (TFM) file not found.     <to be read again>                        relax     l.1 \handWritten{Dr. Haller Xeroxed this 9/8/95}          ?      I'm not sure what a metric (TFM) file is, nor why it didn't come with the package. Can anyone explain the meaning of this error and show me a minimal working document using this font (the one on the font website had even more errors)?


title: Citations with names instead of numbers

text: Let's say I have an entry in my bibliography that looks like               @book{BOSCH,         Author = {Bosch and Lutkebohmert and Raynaud},         Publisher = {Springer},         Title = {N{\'e}ron Models},         Year = {1990}}      When I cite it using `\cite{BOSCH}` I get `[1]` in the PDF. I would like, instead, to get `[BOSCH]`. Is this possible?


title: AUCTeX Emacs TeX-quote-after-quote shortcut when \usepackage{csquotes} is in inputed file

text: I load all my packages through one file which I include with `\input{loadPackages.tex}`. But with this procedure my Emacs Aquamacs preference               ;; " expands into csquotes macros     (setq LaTeX-csquotes-close-quote "}"           LaTeX-csquotes-open-quote "\\enquote{")      to automatically convert `"` into `\enquote{` doesn't work any more. Any solution?


title: Combine natbib and babelbib styles

text: I would like to combine the `plain` style of `babelbib`, but still be able to use `\citeauthor{author}` without having to use the `plainnat` style. Is that somehow possible? My main problem with the `plainnat` style is that the bibliography is not numerical anymore. I would prefer the normal citation style, but in some rare cases I would like to the `\citeauthor` command. I couldn't find a style in the natbib documentation that meet my needs. Or is there a way to write a new command for `babelbib` to be able to use a pseudo `\citeauthor` command?


title: BibTeX loses capitals when creating .bbl file

text: Titles of articles I'm about to cite contain uppercase letters and when using BibTeX it converts them in lowercase ones. This happens only in title and only first letter conserves it's case. For example, when I cite article about HF, reader won't know if it is about Hafnium or fluorine acid. I know that I can fix it manually in `.bbl` file but I'd like to avoid it, or fix it automatically. Thanks for any suggestions.


title: Latex/Bibtex lowercasing entries in references

text: > **Possible Duplicate:**   >  BibTeX loses capitals when creating .bbl file I have entries like this in my bib file:               @misc{paper,           title = {"My Fancy Paper"},           howpublished = "\url{http://www.google.com/}",           note = "Online Mar 2010"     }      But in the final pdf that I generate, the title shows up as "My fancy paper" (note the difference in cases between the titles in .bib and .pdf files). There are some entries which I want to show up exactly as they appear in .bib file. Right now, I am having to use `\uppercase` for all such entries, something like:               @misc{paper,           title = {"\uppercase{M}y \uppercase{F}ancy \uppercase{P}aper"},           howpublished = "\url{http://www.google.com/}",           note = "Online Mar 2010"     }      Is there a better way to have bibtex "respect" the fonts in the bib file?


title: why does text change to all lowercase letters?

text: in my .bib file I have a citation                   @article{IEEstd1,       title={a12312... - IEEE Standard for ...      why does it appear like this in generated pdf               a12312... - ieee Standard for ...


title: Titles in my bibliography are lower-case

text: > **Possible Duplicate:**   >  BibTeX loses capitals when creating .bbl file   >  Transforming the .bib file to get upper cases When using the LaTeX bibliography feature, all titles are in lower-case except for the first letter. How to avoid this?


title: References problems in LyX

text: I put my references in in `.bib` file but there are errors appear in the final `.pdf` file Ex: the original citation: > Karl, Lila. "DNA computing: arrival of biological mathematics." The > mathematical intelligencer 19.2 (1997): 9-22. But what appears in the pdf file is > Karl, Lila. "Dna computing: arrival of biological mathematics." The > mathematical intelligencer 19.2 (1997): 9-22. I want the DNA appears totally capital as it is


title: Transforming the .bib file to get upper cases

text: With the following entry in the `.bib` file               @ARTICLE{a1,     AUTHOR="M., J. J.",     TITLE="My Sample Title",     JOURNAL="Journal Name",     pages="132--234",     YEAR=2000`     }      and with `\bibliographystyle{plain}` in the preamble, my PDF output displays the reference title with lower case, except for the first letter: "My sample title". How could I state that the title should be shown in PDF as I write it in the `.bib` file?


title: How to capitalize entries in BibTeX?

text: > **Possible Duplicate:**   >  BibTeX loses capitals when creating .bbl file I am using the following bibliography style.               \bibliographystyle{plain}     \bibliography{template}      I have the following entry in my `template.bib` file.               @article{ColeMS97,      author = {Cole, Richard J. and Maggs, Bruce M. and Sitaraman, Ramesh K.},      title = {Reconfiguring Arrays with Faults Part I: Worst-Case Faults},      journal = {SIAM J. Comput.},      issue_date = {Dec. 1997},      volume = {26},      number = {6},      month = dec,      year = {1997},      issn = {0097-5397},      pages = {1581--1611},      numpages = {31},      url = {http://dx.doi.org/10.1137/S0097539793255011},      doi = {10.1137/S0097539793255011},      acmid = {270566},      publisher = {Society for Industrial and Applied Mathematics},      address = {Philadelphia, PA, USA},      keywords = {array-based network, fault tolerance, mesh network, network emulation},     }      In the PDF file, it is showing like this.               References          [1] Richard J. Cole, Bruce M. Maggs, and Ramesh K. Sitaraman. Reconfiguring arrays     with faults part i: Worst-case faults. SIAM J. Comput., 26(6):1581–1611, December 1997.      I want the title to be capitalized like this.               [1] Richard J. Cole, Bruce M. Maggs, and Ramesh K. Sitaraman. Reconfiguring Arrays     with Faults Part I: Worst-Case Faults. SIAM J. Comput., 26(6):1581–1611, December 1997.      How can I do this?


title: Incorrect case in BibTeX

text: > **Possible Duplicate:**   >  BibTeX loses capitals when creating .bbl file I have a `.bib` file and I'm using JabRef to edit it. Its content is               % This file was created with JabRef 2.7b.     % Encoding: UTF-8          @ARTICLE{adem,       author = {Alejandro Adem and William Browder},       title = {The free rank of symmetry of $(S^n)^k$},       journal = {Inventiones Mathematicae},       year = {1988},       volume = {92},       pages = {431--440}     }      but when I run `bibtex` and compile my file the title is strange since the math symbols were shown in lower case. Instead of `The free rank of symmetry of $(S^n)^k$` it shows `The free rank of symmetry of $(s^n)^k$` (note the small `s`). I'm using `\bibliographystyle{plain}`. Any help?


title: Preserving capitalization in BibTeX titles

text: I use the LaTeX wikibook a lot and found this solution to preserving capitalization in titles, which is to wrap letters (or whole titles) in curly braces. The phrase "In the event that BibTeX has been set to not preserve all capitalization within titles" suggests that I can fix this with a setting, instead of going back into my .bib files and wrapping titles in `{}`. Is this true? FWIW, I use `natbib` and cite mostly journal articles, which tend to have full capitalization except for articles. Thanks!


title: Set some letters in a title of a cited article majuscule

text: I use `abbrvnat` as bib style: `\bibliographystyle{abbrvnat}`. It seems that all the letters, except the 1st one, in the `title` field of an article are set systematically in minuscule (lowercase). But sometimes, some letters do need to be majuscule (uppercase), for instance for a name of a company or a person. Does anyone know how to make them be majuscule? What should I change in the `.bib`?


title: Controlling title , bibtex, using JabRef

text: I'm using Jabref to manage references. I use references both in English and German.                   % my Question     \documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis          \usepackage{natbib}     \begin{filecontents}{\jobname3.bib}     @INPROCEEDINGS{Talaya2004,       author = {Talaya, J. and Alamús, R. and Bosch, E. and Kornus, W},       title = {Integration of a Terrestrial Laser Scanner with {GPS/IMU} Orientation         Sensors},       booktitle = {The International Archives of the Photogrammetry, Remote Sensing         and Spatial Information Sciences 35 (Part B7)},       year = {2004},       pages = {990-995},       owner = {Say},       timestamp = {2013.09.07}     }     @PHDTHESIS{Gordon2008,       author = {Gordon, B},       title = {Zur Bestimmung von Messunsicherheiten terrestrischer Laserscanner},       school = {Technical University Darmstadt, http://tuprints.ulb.tu-darmstadt.de/1206/.},       year = {2008},       owner = {Say},       timestamp = {2013.09.08}     }     @ARTICLE{Rautenberg2002,       author = {Rautenberg, U and Wiggenhagen, M},       title = {Abnahme und Ueberwachung photogrammetrischer Messsysteme nach VDI         2634, Blatt 1},       journal = {PFG},       year = {2002},       volume = {Nr. 2/2002},       pages = {pp. 117-124},       owner = {Sayyad},       timestamp = {2013.09.08}     }          \end{filecontents}          \begin{document}          %%%%%%%%%%%%% begin Bibliography %%%%%%%%%%%%%%%%%     \citet{Talaya2004}\\          \citet{Gordon2008}     \citet{Rautenberg2002}     \bibliographystyle{apalike}          \bibliography{\jobname3}          \end{document}      Output: > Gordon, B. (2008). Zur Bestimmung von Messunsicherheiten ter- restrischer > Laserscanner. PhD thesis, Technical University Darmstadt, > http://tuprints.ulb.tu-darmstadt.de/1206/. > > Rautenberg, U. and Wiggenhagen, M. (2002). Abnahme und ueberwachung > photogrammetrischer messsysteme nach vdi 2634, blatt 1. PFG, Nr. 2/2002:pp. > 117-124. > > Talaya, J., Alams, R., Bosch, E., and Kornus, W. (2004). Integration of a > terrestrial laser scanner with GPS/IMU orientation sensors. In The > International Archives of the Photogrammetry, Remote Sensing and Spatial > Information Sciences 35 (Part B7), pp. 990-995. I want to get > Gordon, B. (2008). Zur Bestimmung von Messunsicherheiten ter- restrischer > Laserscanner. PhD thesis, Technical University Darmstadt, > http://tuprints.ulb.tu-darmstadt.de/1206/. > > % Correct german, Nouns are written with capital letters > > Rautenberg, U. and Wiggenhagen, M. (2002). **Abnahme und _Ueberwachung_ > photogrammetrischer Messsysteme nach VDI 2634, Blatt** 1. PFG, Nr. > 2/2002:pp. 117-124. > > % First letter should be capital. > > Talaya, J., Alams, R., Bosch, E., and Kornus, W. (2004). **Integration of a > Terrestrial Laser Scanner with GPS/IMU Orientation Sensors**. In The > International Archives of the Photogrammetry, Remote Sensing and Spatial > Information Sciences 35 (Part B7), pp. 990-995. What should include / have to change in my code. What should I change in `.bst` file. I'm using JabRef to mange my code.


title: Why are capital letters missing in title of reference (using plos2009.bst)?

text: I'm using the plos2009.bst file to generate my references. However, there seems to be a bug in the .bst File since the formatation of the references is not correct. E.g. there are no capital letters in the title of the cited paper. plos2009.bst generates: > Kortner TM, Gu J, Krogdahl A, Bakke AM (2012) Transcriptional regulation of > cholesterol and bile acid metabolism after dietary soyabean meal treatment > in atlantic salmon (salmo salar l.). BJN : 1–12. but it should look like: > Kortner TM, Gu J, Krogdahl A, Bakke AM (2012) Transcriptional regulation of > cholesterol and bile acid metabolism after dietary soyabean meal treatment > in **Atlantic** salmon ( **Salmo salar L.** ). BJN : 1–12.


title: Titles are lowercased in bibliography

text: > **Possible Duplicate:**   >  Transforming the .bib file to get upper cases I'm new to LatTeX and so far I'm happy with it. I'm using MiKTeX. In the bibliography section, the titles of `@inproceedings` items are all being lowercased. I am aware that I can use curly brakets to denote capital letters, but I don't like the idea, it ruins the beauty of having just to copy the BibTeX entry of a paper so as to have it referenced. I've read somewhere that a `.bst` file needs to be edited. However I cannot found out which default `.bst` file MiKTeX is using. Any ideas please?


title: apacite: capitalized significant words of journal title

text: In APA style all significant words of the journal name are to be captalized, for example: _Journal of Personality and Individual Differences_. `apacite` package seems to not do it automatically, so I have two alternatives:   1. Manually changes all my bibliography entries (but they are too many!);   2. Manually force `apacite` to capitalize journals (but only significant words). I don't know how I can carry out point 2. Is it possible? Could someone help me?


title: Multiple PDFs with page group included in a single page warning

text: I updated TeX Live to the Ubuntu Quantal version (2012.20120611-4) and I suddenly got this warning: > PDF inclusion: multiple pdfs with page group included in a single page This is a minimal example for which I get the warning:               \documentclass{book}     \usepackage{graphicx}     \begin{document}       \includegraphics{image1}            \includegraphics{image2}     \end{document}      Both images have been produced by the export PDF feature of Inkscape and contain simple line drawings (no fancy stuff). I have been looking on the Internet, but only found others with this problem and did not found any solutions:   * In the Latex user group they did not seem to understand/recognise the problem. And told the OP to go to the MikTeX groups, but it is not a MiKTeX specific problem as it is also happening with TeX Live and other distributions.   * At gmane.comp.tex.pdftex they were looking into the use (and versions) of MS Office products. Also not the cause as I am not using MS Office to produce PDFs. During my search if found the PDFTeX code (pdftoepdf.cc) that spawns this warning, maybe it is of some help in understanding what is happening?               if (pdfpagegroupval == 0) {          // another pdf with page group was included earlier on the same page;         // copy the Group entry as is         pdftex_warn("PDF inclusion: multiple pdfs with page group included in a single page");         pdf_newline();         pdf_puts("/Group ");         copyObject(&dictObj);     } else {         // write Group dict as a separate object, since the Page dict also refers to it         pageDict->lookup((char *) "Group", &dictObj);         if (!dictObj->isDict())             pdftex_fail("PDF inclusion: /Group dict missing");         writeSepGroup = true;         initDictFromDict(groupDict, page->getGroup());         pdf_printf("/Group %d 0 R\n", pdfpagegroupval);     }      Does anyone have an idea what is happening, whether it is serious and how I could get rid of these warnings?